Replies: 1 comment 6 replies
-
When you have more then one consumer do they all need to process all messages or do you mean multiple subscribers where any given subscriber receives a message but only one of them does? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way not to delete messages immediately if there are no consumers in JetStream?
My use case is that there can be 0 or 1 or multiple consumers for the same subject, and messages published can't be deleted right away if there are no consumers for that subject. Once messages are consumed at least once, they can be deleted.
I tried default LimitsPolicy to manually delete message by sequence number, if there are multiple consumers, there will be multiple delete requests. But it causes race condition due to network latency, if message is not deleted fast enough, new consumer will consume that message, which is not desired.
Anyway to make this happen?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions