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
asked a year ago547 views
1 Answer
4
Accepted Answer

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
answered a year ago
profile pictureAWS
EXPERT
reviewed a year 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