SNS (Simple Notification Service)
Amazon SNS (Simple Notification Service) is a fully managed pub/sub messaging service. It enables you to decouple microservices, distributed systems, and serverless applications by sending messages to multiple subscribers.
Pub/Sub Model
SNS uses a topic-based pub/sub model. Publishers send messages to topics, and subscribers receive messages from topics they're subscribed to. Topics are logical access points that group multiple endpoints for message delivery.
Subscription Types
SNS supports multiple subscription types: HTTP/HTTPS (webhooks), Email, Email-JSON, SMS, SQS (queue), Lambda, and Application (mobile push). Each subscriber receives a copy of every message published to the topic.
Message Filtering
SNS provides message filtering, allowing subscribers to receive only messages that match specific attributes. Message filtering reduces unnecessary message delivery and can help reduce costs. SNS is highly available and durable, with messages stored redundantly across multiple Availability Zones.
