SNS is a fully managed pub/sub message delivery service hat enables you to decouple microservices, distributed systems, and serverless applications.
Simple Notification Service (SNS)
SNS can be used for event notification, notifying admins of system alerts (CloudWatch), mobile push (no polling) notification.
- Messages (<= 256 KB) are sent to a topic and delivered to subscribers.
- Typically, JSON key-value pairs
- Resource policies define who can access a topic.
- For some AWS services (EC2 or Lambda), IAM roles are used.
- Topic: A configuration for SNS. Messages are sent to a topic.
- Subscriber: Endpoints that receive a message for a topic (HTTP, Email, SQS, Lambda, Mobile push notification)
- Publisher: An entity that sends messages to a topic (Application, S3, CloudWatch, CloudFormation)
- SNS Can be used with the AWS Console, API, CLI, and multiple SDKs.
- Using Amazon SNS topics, publisher systems can fan out messages to a large number of subscriber endpoints for parallel processing, including Amazon SQS queues, AWS Lambda functions, and HTTP/S webhooks.
- Additionally, SNS can be used to fan out notifications to end users using mobile push, SMS, and email.