Amazon SNS
High-Throughput Pub/Sub Messaging & Fan-out Architectures
The Building Blocks
1. Publishers
The message originators. These can be AWS services (S3, CloudWatch), microservices, or custom applications that send messages to a specific SNS Topic.
2. Topics
Logical access points and communication channels. They act as the “hub” where messages are sent before being distributed to subscribers.
3. Subscribers
The endpoints that listen for messages. SNS supports diverse protocols including SQS, Lambda, HTTP/S, SMS, and Mobile Push.
The Fan-out Pattern
One message, multiple destinations—instantaneously.
Asynchronous Logic
Decouple your services. The publisher doesn’t need to wait for subscribers to finish processing.
Message Filtering
Subscribers can set policies to only receive specific messages based on attributes, reducing noise.