By using AWS re:Post, you agree to the AWS re:Post Terms of Use

SQS FIFO Queue Not maintaing the order for same message group id.

0

I have a FIFO queue, and the queue consists of two messages as of now M1 and M2 having same message group id M. The retry is 10 for queue. M1 got failed while processing the message by the consumer. And after some time, the message M1 should be consumed and processed by the consumer aka retried. But the consumer is consuming M2 few times and few times M1. The order is not maintained for the messages having same message group id.

asked 2 months ago47 views
1 Answer
0

One of the mechanisms that can break the order of messages in FIFQ queue is DLQ. Please see this documentation and notate the following:

Don’t use a dead-letter queue with a FIFO queue if you don’t want to break the exact order of messages or operations. For example, don’t use a dead-letter queue with instructions in an Edit Decision List (EDL) for a video editing suite, where changing the order of edits changes the context of subsequent edits.

https://aws.amazon.com/de/blogs/compute/using-amazon-sqs-dead-letter-queues-to-control-message-failure/

profile pictureAWS
answered a month ago
profile picture
EXPERT
reviewed 5 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions