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
preguntada hace un año553 visualizaciones
1 Respuesta
4
Respuesta aceptada

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
respondido hace un año
profile pictureAWS
EXPERTO
revisado hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas