What is SNS?
SNS sends one message to many subscribers at once: queues, functions, emails, phones.
1 min read
Amazon Simple Notification Service (SNS) is a publish/subscribe (pub/sub) service. A publisher sends a message to a topic, and SNS immediately pushes a copy to every subscriber of that topic.
Think of it like this
SQS is a to-do list one worker picks from. SNS is a megaphone: one announcement, and everyone who's listening hears it at the same time.
Subscriber types
- SQS queues (the most common, for reliable processing)
- Lambda functions
- HTTP/HTTPS endpoints (webhooks)
- Email and SMS
- Mobile push notifications
- Amazon Data Firehose (to archive messages into S3 and other destinations)
In our project
When NoteSnap finishes a summary, it publishes SummaryReady to a topic. One subscriber emails the user, another
updates analytics, and a third writes an audit log. The publisher doesn't know or care how many there are.
Key takeaways
- SNS is pub/sub: publish once, and every subscriber gets a copy.
- Subscribers can be SQS, Lambda, HTTP, email, SMS, or mobile push.
- Publishers don't need to know who's listening.
Check your understanding
Pick an answer to see the explanation.
1. How does SNS differ from SQS?