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
질문됨 일 년 전553회 조회
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
답변함 일 년 전
profile pictureAWS
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠