Replies: 2 comments 1 reply
-
@SzymonSzM Transferred this discussion to the nats.net repo |
Beta Was this translation helpful? Give feedback.
-
From you example I can't tell exactly when your client was crashed and if you had more than once instance of the consumer running, but I'll try my best. A couple things going on. You have a durable consumer, which means that once the client acks a message it will never see it again. The other thing you have turned on is auto ack in the subscribe, which means that if you don't ack the message in the handler, as soon as your handler code is finished, the client will ack the message for you. Since you are using a deliver group, all subscriptions using this consumer get the messages round robin from the server. If all things are running normally, and for instance you have 3 clients running the same consumer, each client will only receive 1/3 of the messages. Something to try while your subscriber is crashed is to run the NATS Cli and interrogate the consumer.
and you will be able to see the delivery status of messages. |
Beta Was this translation helpful? Give feedback.
-
Hello,
We have a problem to achieve with JetStream same behavior as with STAN connected to durable, queued subscription. Please let me write a scenario below:
More details:
Beta Was this translation helpful? Give feedback.
All reactions