-
Notifications
You must be signed in to change notification settings - Fork 708
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MaxWait on jetstreamcontext.Subscribe(and similar) #699
Comments
@tpihl Right now there is no
|
Thats not really what i meant. The MaxWait i am looking for is the push-consumers timeout before it will send an un-acked message. Defaults to 30 seconds, visible when you do a nats consumer info as Ack Wait (under Ack Policy). How do i change that when i create a push consumer subscription as above? |
If you call this:
Then the push consumer would redeliver messages after they have not been acked after 10 seconds. |
So MaxWait consumer require a SubscribeSync with my own msg-loop? Isnt that a pull-consumer? |
|
So what is the difference except max messages in buffer. My MsgHandler is only invoked one message at the time,isn't it? Even with MaxAckPending higher |
Yes the MsgHandler is only invoked once per message delivered and it is called sequentially as the messages get delivered to the client, the main difference with PullSubscribers is that you control when to be delivered the messages whereas with Push conssumer, SubscribeSync or Subscribe it is expected that a client is always able to receive messages at a good pace without becoming a slow consumer. |
Feature Request
Creating an ephemeral or durable push subscriber using jetstreamcontext allow you to set almost all consumer parameters, but i cannot find MaxWait(dur).
The text was updated successfully, but these errors were encountered: