-
I'm new to NATS and I want to create a consumer where messages are always received in order. From what I can tell |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ordered Consumer is a client side construct that creates an ephemeral consumer with no-ack and, on client side, tracks the sequences. If it detects the gap, it will recreate the consumer. If you want long-lived processing, durable consumer with |
Beta Was this translation helpful? Give feedback.
Ordered Consumer is a client side construct that creates an ephemeral consumer with no-ack and, on client side, tracks the sequences. If it detects the gap, it will recreate the consumer.
It's meant to be used if you want to quickly whip through the stream (as its really fast without acks, replication and rtt-dependand max-ack-pending) and stop.
If you want long-lived processing, durable consumer with
MaxAckPending = 1
is all you need to ensure order.