You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Amazon Simple Notification Service (SNS) is a fully managed publish-subscribe (pub/sub) messaging service. While SQS provides point-to-point messaging (one producer, one consumer), SNS enables one-to-many communication — a single message published to a topic is delivered to multiple subscribers simultaneously.
| Feature | SQS (Queue) | SNS (Topic) |
|---|---|---|
| Pattern | Point-to-point | Publish-subscribe |
| Consumers | One consumer per message | Multiple subscribers per message |
| Delivery | Consumer polls the queue | SNS pushes to subscribers |
| Persistence | Messages stored until deleted | No persistence — push and forget |
| Use case | Work queues, task processing | Notifications, fan-out, broadcasting |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.