Skip to content

Fetch timeout #1012

Answered by aricart
bmatthews asked this question in Q&A
Jul 4, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Depending on your network topology the JetStream you talk to may not be the one that you are directly connected to. If for some reason the server handling your request is partitioned/etc.
This means that your client may hang waiting for messages until the expiration timer on the client kicks in. If you have a shorter expiration (the 30s is possibly a good expires setting), the client would possibly recover faster (assuming the server came back up).

If the service is unavailable when you re-pull, you would be alerted with a 503 (no responders/timeout).

A recent PR on the server allows for heartbeats with pull consumers, but this is not yet implemented by the clients.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bmatthews
Comment options

Answer selected by bmatthews
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants