ExitAmazon SQS: delivery and processing guarantees1 / 9
Explanation

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.

PropertyStandardFIFO
Ordering contractBest effortArrival order within each group
Cross-group orderNo strict orderingNo relative ordering guarantee
Group ID on sendNot mandatoryRequired
Duplicate protectionDuplicate delivery possibleBounded send deduplication