Amazon SNS (Simple Notification Service)
Amazon Simple Notification Service (SNS) is a fully managed messaging service for both application-to-application (A2A) and application-to-person (A2P) communication.
Key Features
- Pub/Sub Model: Publishers send messages to a Topic; Subscribers receive them.
- Push-based: Pushes messages to subscribers immediately (no polling).
- Fan-out: Send a single message to multiple subscribers (e.g., SQS queues, Lambda functions, HTTP endpoints).
- Multiple Protocols: Supports HTTP/S, Email, SMS, Mobile Push, SQS, Lambda.
Exam Tips
- "Pub/Sub": Answer is SNS.
- "Fan-out": Answer is SNS.
- "Push notifications": Answer is SNS.
- "Send SMS/Email": Answer is SNS.
Common Use Cases
- Application Alerts: Sending email/SMS alerts to admins.
- Fan-out Architecture: Sending a modification event to an SQS queue for processing and a Lambda function for logging.
- Mobile Push Notifications: Delivering updates to mobile apps.