Skip to content

Nats Consumer Log Message #516

Answered by mtmk
alberk8 asked this question in Q&A
Jun 14, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Those are settings for pull requests. Consume works with asking the server for messages and server sends back as many as maxMsgs or if there aren't enough messages the pull request is closed by the server after 30 seconds (set by the expires setting). If there are no messages to be sent, server will send a heartbeat message every 15 seconds (idle setting). If the client receives all the messages it asked for, after the request is expired or doesn't receive any messages or heartbeat for more than 30 seconds (2 x idle) then it issues another pull request. the cycle continues until client terminates the consume loop. Bit of an explanation. please feel free to ask if I can clarify anything th…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by alberk8
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