Amazon SNS Flashcards
Amazon SNS
Amazon Simple Notification Service (Amazon SNS) is a fully managed messaging service for both application-to-application (A2A) and application-to-person (A2P) communication.
The pub/sub functionality provides messaging for high-throughput, push-based, many-to-many use cases.
Amazon SNS is used for sending notifications between distributed systems, microservices, and event-driven serverless applications.
Pub-Sub Pattern
SNS uses a pub-sub model whereby users or applications subscribe to SNS topics.
Amazon SNS provides decoupling of your applications so messages can be processed asynchronously.
SNS Topics
A topic is an “access point” for allowing recipients to dynamically subscribe for identical copies of the same notification.
One topic can support deliveries to multiple endpoint types.
All messages are stored redundantly across multiple availability zones.
Provides instantaneous, push-based delivery.
SNS Subscribers and Endpoints
When subscribing to an SNS topic the following endpoint types are supported:
- HTTP/HTTPS.
- Email/Email-JSON.
- Amazon Kinesis Data Firehose.
- Amazon SQS.
- AWS Lambda.
- Platform application endpoint (mobile push).
- SMS.
SNS Fanout
Your publisher systems can fanout messages to many subscriber systems including Amazon SQS queues, AWS Lambda functions and HTTPS endpoints, for parallel processing, and Amazon Kinesis Data Firehose.
You can subscribe one or more Amazon SQS queues to an Amazon SNS topic from a list of topics available for the selected queue..
When you publish a message to a topic, Amazon SNS sends the message to every subscribed queue.