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.

已提問 3 個月前檢視次數 75 次
1 個回答
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
已回答 3 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南