Is it possible to create an ephemeral consumer that can fetch only the most recent messages in the stream? #5105
Unanswered
aliasadidev
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Hey! No, you can't create a consumer that "knows" to fetch just the last n messages. However what you can do is run In next release (2.11) there will also be a way to get multiple messages from stream without creating consumer with |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you just want new messages since time of creation of the consumer you can use DeliverNew(). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to fetch only the latest 3 new messages from the stream? Currently, using
DeliverPolicy.All
will send messages starting from sequence number 1. It would be great to have an ephemeral consumer that can display only the latest messages based on a count.Beta Was this translation helpful? Give feedback.
All reactions