Skip to content

[Key_Shared] How to ensure the order when unack and send msg concurrent? #21863

Closed Answered by merlimat
xrayw asked this question in Q&A
Discussion options

You must be logged in to vote

If you do negative-ack, you are requesting a message to be redelivered later. In the meantime, you will receive other messages, potentially for the same key, therefore you will get out-of-order.

If you want to ensure strict ordering, you need to pause and hold on to the message and keep trying to process the same message until you succeed, before resuming to the rest of messages.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@xrayw
Comment options

@asafm
Comment options

asafm Jan 10, 2024
Collaborator

@xrayw
Comment options

@merlimat
Comment options

Answer selected by xrayw
@xrayw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants