Replies: 1 comment 3 replies
-
If you did not create the JS consumer using js.AddConsumer(), then when you call js.Subscribe(), the library will create the JS consumer for you (the first time). Subsequent calls to js.Subscribe() will then find the existing JS consumer and make sure that the new options you may have passed to js.Subscribe() does not conflict with the configuration on the server. You have the option to call js.UpdateConsumer with a new MaxAckPending value. Then, the new call to js.Subscribe() will have to either not specify MaxAckPending at all, or have the same value. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am from nats streaming, maybe my concept is a bit
I use the durable function so as I understand it creates a consumer for me. Later on, I found the max ack pending is too high so I add sub opt to the subscription. It throws an error saying my config is conflicted with the consumer...
Is that I need to delete the consumer and create again so I will lose my durable position?
Beta Was this translation helpful? Give feedback.
All reactions