AWS SNS¶
- The "event producer" only sends message to one [[SNS topic]]
- As many "event receivers" (subscriptions) as we want to listen to the SNS topic notifications
- Each subscriber to the topic will get all the messages (note: new feature to filter messages)
- Up to 10,000,000 subscriptions per topic
- 100,000 topics limit
- Subscribers can be:
SNS integrates with a lot of Amazon Products¶
- Some services can send data directly to SNS for notifications
- CloudWatch (for alarms)
- Auto Scaling Group (ASG) notifications
- AWS S3 (on bucket events)
- CloudFormation (upon state changes => failed to build etc)
- Etc
SNS + AWS SQS: Fan Out¶
- Publish once in SNS, receive in many SQS
- Fully decoupled
- No data loss
- Ability to add receivers of data later
- SQS allows for delayed processing
- SQS allows for retries of work
- May have many workers on one queue and one worker on the othere queue

Hands on¶
You can type SNS or Simple Notification Service in AWS Console.

Then create MyFirstTopic.


Now create a subscription.

Confirm subscription


Now publish a message.

