6.1
Messaging (SQS / SNS / EventBridge)
Decouple with queues, fan out with pub/sub, route events with an event bus.
Key points
- SQS → queue; SNS → pub/sub notifications; EventBridge → events.
Amazon SQS
SQS stands for Simple Queue Service. It is a managed message queue.
Application A
↓
SQS
↓
Application BSQS is commonly used to decouple application components.
Amazon SNS
SNS stands for Simple Notification Service. It supports publish/subscribe messaging.
Publisher
↓
SNS
↙ ↘
Email ApplicationAmazon EventBridge
EventBridge is an event bus service used for event-driven architectures.
Easy trick
- SQS → Queue
- SNS → Notifications / Pub-Sub
- EventBridge → Events
Exam focus
Decouple components → SQS; notify many subscribers → SNS.