Decoupling Applications with Amazon SQS, Amazon SNS and Amazon EventBridge
This lesson explains how application integration services let the parts of an application communicate without being tightly connected, so each part can scale and fail independently. This is called loose coupling.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish Amazon SQS, Amazon SNS and Amazon EventBridge.
- Explain how a queue protects a service from traffic spikes.
Comparing the services
SQS, SNS and EventBridge all connect the parts of an application loosely, so that one part can fail or slow down without stopping the others. Amazon SQS is a message queue: messages wait safely in the queue until a consumer pulls one, processes it and deletes it, and each message is handled by one consumer. It suits decoupling components and absorbing sudden spikes of work.
Amazon SNS is a publish-subscribe service: a message sent to a topic is pushed at once to every subscriber, which can be email, SMS, mobile push, SQS queues, Lambda functions or HTTP endpoints. It suits alerts and sending one message to many systems. Amazon EventBridge is an event bus: rules examine each event's content and route it to targets such as Lambda or Step Functions. It suits reacting to events from AWS services, your own applications and SaaS partners, and running schedules. The following table summarises the differences.
SQS, SNS or EventBridge?
Example
An ordering website places orders in an SQS queue for a separate service to process, so traffic spikes do not overwhelm order processing. AWS Step Functions coordinates multi-step workflows.
The following diagram shows a queue between the website and order processing.

Handling an order without losing it
When a customer places an order, three things must happen: charge the card, notify the warehouse, and email a confirmation. A loosely coupled design uses the integration services:
| Step | Service | Benefit |
|---|---|---|
| The website publishes an "order placed" message | Amazon SNS topic | One message reaches every interested system (fan-out) |
| Each system has its own queue subscribed to the topic | Amazon SQS queues | If the warehouse system is down, its orders wait safely in the queue |
| A nightly report runs at 02:00 | Amazon EventBridge Scheduler | No server needed to run cron jobs |
On Black Friday, orders arrive faster than the warehouse system can process them. Instead of failing, the extra orders wait in the SQS queue and are processed as capacity allows. That is the benefit of decoupling: one slow part does not bring down the whole system.
Which service sends one message to many subscribers at once?
Show answer
Amazon SNS, which uses publish and subscribe.
Exam Tips
Remember for the exam
- To decouple components with a message queue, use SQS.
- To send notifications to many subscribers by email or SMS, use SNS.
- Event-driven routing from AWS services or SaaS applications points to EventBridge.
- SQS pulls and stores messages; SNS pushes them to many subscribers.
- To coordinate multi-step workflows, use Step Functions.