Replies: 3 comments 1 reply
-
Stream can be considered unique and stable index to the message. Consumer sequences start at 1 and always montonically increase by one for every time the consumer state engine in the server delivers a message. Each message received in your app has both of those plus what the system feels is the number of deliveries for that message. Meaning if the message is failed to be ack'd (or nak'd or in progress) before ack wait, we will deliver same message (same stream sequence) again with a different consumer sequence and NumDelivered = 2. |
Beta Was this translation helpful? Give feedback.
-
In from the above logs we can see that the redelivered messages are 0, unprocessed 92 and no outstanding acks as well
|
Beta Was this translation helpful? Give feedback.
-
With a filter subject matching only some of the stream messages these sequences can’t match. Your consumer info suggests you have a filter but not clear if it’s matching all or not? irs best to just work on the assumption these are not related and don’t increment in lock step. |
Beta Was this translation helpful? Give feedback.
-
We have seen this on one of our stream consumers, we are using WorkQueue with DiscardNew
Can someone help me to understand these numbers better and how can we ensure that there are no messages getting dropped by the stream.
From the docs it says that
https://docs.nats.io/running-a-nats-service/nats_admin/jetstream_admin/consumers#stream-vs-consumer-sequence-numbers
But what do they signify, would like some more clarity
Beta Was this translation helpful? Give feedback.
All reactions