-
I have a Jetstream consumer with the following log. What does it mean by expires 00:00:30 and idle 00:00:15? I want the consume to run as long as the aspnet app is running. Do I need to worry about the message. Thanks.
Sample Code
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 that was a bit confusing. cheers |
Beta Was this translation helpful? Give feedback.
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…