Does FIFO SQS ensure order between different Group IDs?

0

I confirmed that the order is ensured for the same group ID in the FIFO queue. When messages with different group IDs come in, I wonder if the order is also guaranteed for messages with different group IDs.

example send message order

  1. MessageBody: 1, group id:1
  2. MessageBody: 2, group id:2
  3. MessageBody: 3, group id:3
  4. MessageBody: 4, group id:4

Sequence when calling the receive message API

  1. MessageBody: 1, group id:1
  2. MessageBody: 2, group id:2
  3. MessageBody: 3, group id:3
  4. MessageBody: 4, group id:4
1回答
4
承認された回答

FIFO queue logic applies only per message group ID. Each message group ID represents a distinct ordered message group within an Amazon SQS queue. For each message group ID, all messages are sent and received in strict order. However, messages with different message group ID values might be sent and received out of order. (from docs.aws.amazon.com)

More detail is available here . . . https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/FIFO-queues-understanding-logic.html

profile pictureAWS
回答済み 1年前
profile pictureAWS
エキスパート
レビュー済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ