NATS Consumer not reading all the messages of a subject from a stream #6715
Unanswered
kruthik-nivas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to build a NATS consumer that reads the last message from all subjects and then closes the connection. I need to do this periodically. However, my current implementation reads only up to 500 messages. Even though there are more than 1500 messages. I have also tried reading all messages from a single subject which also had more than 1200 messages and i still was able to get only 500.
How can I consume and also ensure it reads the last message from all subjects without this limitation?
The code i used from NATS BY EXAMPLE :
Beta Was this translation helpful? Give feedback.
All reactions