Use Case
- Send one message to many receivers at the same time.
- Implements a Pub/Sub model: a producer publishes a message to an SNS Topic, which then distributes (βfans outβ) the message to multiple subscribers.
Example subscribers: email notifications, internal services (fraud, shipping), SQS queues, Lambda functions.
Benefits
- Scalable Pub/Sub architecture.
- Decouples the producer from multiple consumers.
- Direct integration with many AWS services.
- Supports message filtering to deliver messages only to specific subscribers.
Key Characteristics
- All subscribers receive the message published to the topic.
- Up to 12.5M subscriptions per topic.
- Up to 100K topics per account.
Supported Subscribers
- Amazon SQS
- AWS Lambda
- Amazon Kinesis Data Firehose
- HTTP(S) endpoints
- SMS / Mobile push
AWS Services That Can Publish to SNS
- CloudWatch Alarms
- Amazon S3 (object create/delete events)
- Auto Scaling Groups (scaling events)
- AWS CloudFormation (stack state changes)
- AWS Budgets
- AWS Lambda
- AWS Database Migration Service (replication events)
- DynamoDB Streams
- Amazon RDS Events
Β
Amazon SNS β How to PublishAmazon SNS β SecuritySNS + SQS: Fan-Out PatternAmazon SNS β FIFO TopicAmazon SNS β Message Filtering