AWS Builder Center

SQS vs SNS vs EventBridge: When Are You Over-Engineering Your Event Architecture?

Stop guessing between SQS, SNS, and EventBridge. Here is a clear decision framework comparing latency, cost traps, filtering power, and replay patterns so you never over-engineer decoupled microservices on AWS again.

Designing event-driven microservices on AWS often begins with a deceptive dilemma: Do you use SQS, SNS, or EventBridge?
In theory, AWS documentation makes it sound straightforward:
  • SQS queues messages for batching and point-to-point decoupling.
  • SNS fans out notifications to multiple subscribers.
  • EventBridge acts as an enterprise event bus with intelligent content filtering and schema registries.
In practice, architectural boundaries blur quickly. Many developers reach for EventBridge as their default bus for internal microservice chatter, only to run into latency spikes or unexpected event-filtering costs. Others chain multiple SNS topics and SQS queues together, creating an unmaintainable tangle of IAM policies and dead-letter queues.
Here is a practical decision framework to help you choose the right pattern without over-engineering your cloud architecture.

The Cheat Sheet: At a Glance

Feature
Amazon SQS
Amazon SNS
Amazon EventBridge
Pattern
Pull (Consumer polls)
Push (Instant fan-out)
Push / Router (Event Bus)
Primary Job
Buffering, rate-limiting, queuing
High-throughput, pub/sub broadcast
Complex rule-based routing
P99 Latency
Low (< 20 ms)
Ultra-low (< 30 ms)
Moderate (typ. 100–300 ms)
Base Pricing
$0.40 / million requests
$0.50 / million publishes
$1.00 / million custom events
Native Replay?
No (requires custom logic)
No
Yes (Event Archive & Replay)
Payload Filter
None (FIFO deduplication only)
Basic message attributes
Deep JSON content payload inspection

Pattern 1: Amazon SQS (The Reliable Shock Absorber)

Use SQS when: Your downstream consumer needs to dictate its own pace.
If your database or third-party downstream API can only handle 50 requests per second, sending traffic through SNS or EventBridge will overwhelm it. SQS gives you:
  • Rate-limiting & Backpressure: The consumer pulls work when it is ready.
  • Strict Ordering: SQS FIFO ensures zero duplicate processing and deterministic execution sequence.
  • Failure Isolation: Built-in Redrive Policies route poisonous payloads to a Dead-Letter Queue (DLQ) after $N$ retry attempts without halting execution for the rest of the queue.
Anti-Pattern: Never use SQS if multiple independent services need to react to the same event. SQS deletes the message once a worker completes it.

Pattern 2: Amazon SNS (The High-Speed Broadcast)

Use SNS when: You need ultra-low latency, identical broadcast to multiple heterogeneous targets (Email, SMS, HTTP webhooks, and SQS queues).
The classic SNS + SQS Fan-Out Pattern remains an industry standard:
Plaintext
[ Orders API ]
│
▼
[ SNS Topic ]
├──► SQS Queue A (Billing Service)
├──► SQS Queue B (Inventory Service)
└──► SQS Queue C (Shipping Service)
Each downstream service owns its private queue. If the Shipping Service is deployed or crashes, Billing and Inventory continue processing uninterrupted without losing events.
Anti-Pattern: Do not use SNS if your consumers need to filter events based on complex JSON payload contents. While SNS supports message attribute filtering, inspecting deep payload bodies requires custom code or an event bus.

Pattern 3: Amazon EventBridge (The Intelligent Enterprise Router)

Use EventBridge when: You need deep payload matching, cross-account event routing, or event archiving and replaying.
EventBridge shines when your architecture spans multiple AWS accounts, external SaaS platforms (Stripe, GitHub, Datadog), or services that only care about specific payload shapes:
JSON
{
"source": ["ecommerce.orders"],
"detail-type": ["OrderPlaced"],
"detail": {
"status": ["PAID"],
"paymentDetails": {
"totalAmount": [{ "numeric": [ ">", 500 ] }]
}
}
}
The rule above matches and routes only high-value orders directly to a VIP fulfillment handler without spinning up custom consumer filtering logic.

The 2 Hidden Gotchas of EventBridge:

  1. Latency: EventBridge rules typically introduce 100–300 ms of routing latency. If you are building real-time trading pipelines or ultra-responsive synchronous workflows, EventBridge can introduce noticeable lag compared to direct SNS delivery.
  1. Cost at Scale: At $1.00 per million events (plus target delivery charges), high-throughput telemetry or IoT streams can become significantly more expensive than basic SNS/SQS pipelines.

The 3-Question Decision Framework

Ask these questions before writing your next Infrastructure-as-Code template:
  1. Does the producer need to wait, or can downstream fail independently?
  • If downstream must throttle traffic $\rightarrow$ SQS.
  1. Do multiple downstream services need the exact same payload at millisecond latency?
  • High speed, identical broadcast $\rightarrow$ SNS (Fan-out to SQS).
  1. Do consumers care about specific payload attributes, need SaaS integration, or require event replay?
  • Deep routing rules, auditability, cross-account $\rightarrow$ Amazon EventBridge.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article