πŸ”Ά

Amazon SNS

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
  • Email

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 Publish
πŸ”·
Amazon SNS – Security
πŸ”·
SNS + SQS: Fan-Out Pattern
πŸ”·
Amazon SNS – FIFO Topic
πŸ”·
Amazon SNS – Message Filtering