Replies: 1 comment
-
Hello @nvcnvn The way As far as I understand it, this would not satisfy your use case, as this does not prevent the server from sending the same message to all listening consumers. What you can do, is simply use the same consumer across your consumer processes - then if you're consuming messages on each process, server will round-robin messages between processes. |
Beta Was this translation helpful? Give feedback.
-
On the official docs:
https://docs.nats.io/nats-concepts/jetstream/consumers#deliverpolicy
Seem a little bit different with golang client docs:
nats.go/jetstream/consumer_config.go
Line 114 in 9e5e706
I'm not sure if this
DeliverLastPolicy
fit my use case here:I think a simple limit-base stream is necessary since we want to "replay" the message some time (for internal testing).
Is
DeliverLastPolicy
the correct one I'm looking for?Beta Was this translation helpful? Give feedback.
All reactions