Ordering has a scope
How the standard and FIFO message lifecycles govern ordering, deduplication, visibility-based retries, and in-flight consumer concurrency without guaranteeing exactly-once application side effects. · advanced
Standard queues provide at-least-once delivery and make a best-effort attempt to preserve send order. Duplicate deliveries and occasional out-of-order arrivals are valid behavior. Their nearly unlimited API call throughput does not strengthen either guarantee.
FIFO ordering applies within a MessageGroupId. Every FIFO message requires one; a send without one fails. When multiple producers send to the same group, SQS preserves the order in which their messages arrive—not a business sequence inferred from their contents.
Messages in different groups have no relative ordering guarantee. Groups define independent ordering scopes: do not infer a global processing sequence from several individually ordered groups.
| Property | Standard | FIFO |
|---|---|---|
| Ordering contract | Best effort | Arrival order within each group |
| Cross-group order | No strict ordering | No relative ordering guarantee |
| Group ID on send | Not mandatory | Required |
| Duplicate protection | Duplicate delivery possible | Bounded send deduplication |