Back to results for “Amazon SNS (Simple Notification Service)”
AWS › Amazon SNS (Simple Notification Service)

What is the difference between SNS Standard and FIFO topics?

Intermediate

Answer

SNS Standard topics offer high throughput and best effort ordering, meaning messages might occasionally be delivered out of order or more than once, which is acceptable for most notification use cases, while SNS FIFO topics guarantee strict message ordering and exactly once delivery to subscribed SQS FIFO queues, which is important for use cases like financial transaction notifications where processing order absolutely matters.
aws sns create-topic --name OrderEvents.fifo --attributes FifoTopic=true,ContentBasedDeduplication=true
Real-world example A banking application uses an SNS FIFO topic to ensure that account transaction notifications are always delivered and processed in the exact order they occurred, preventing a withdrawal notification from ever being processed before its corresponding deposit.

Common follow-ups: What are the throughput limitations of FIFO topics compared to Standard topics?;Can a FIFO topic have subscribers other than SQS FIFO queues?