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
posta un anno fa553 visualizzazioni
1 Risposta
4
Risposta accettata

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
con risposta un anno fa
profile pictureAWS
ESPERTO
verificato un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande