# SQS, SNS or EventBridge: which one for which job?

By Vishal Kumar · Published 2026-11-02 · Updated 2026-11-13
Source: https://fungyaan.com/p/sqs-sns-eventbridge
Tags: aws, messaging, sqs, sns, eventbridge, system-design

**Short answer:** the verdict, which the evidence below will earn: pick by the shape of the job.
- **SQS** is a **queue**: work that one consumer must do, at its own pace, with retries and a dead-letter queue.
- **SNS** is a **topic**: push one message to many subscribers at once (fan-out), fast, with optional filtering.
- **EventBridge** is an **event bus**: route events by their content to different targets, across services and accounts, with a schema registry, archive and replay, and integrations with AWS and SaaS sources.

The most common production shapes combine them:
- **SNS → several SQS queues** (fan-out where each consumer keeps its own durable queue);
- **EventBridge → SQS** (content routing into durable queues).

The case that usually brings people here is a vanishing message: an event was published, a consumer was down for a while, and when it came back the event was simply gone. Which service lost it? These three get confused because they overlap, but each one is built around a different idea about who holds a message, and for how long. Once you see the three shapes, the mystery solves itself, and the overlaps start to look like a well-planned toolkit rather than a muddle.

> **Case file**
>
> | | |
> |---|---|
> | **The case** | An event was published, a consumer was down for a while, and the event was gone |
> | **Suspects** | SQS, SNS, EventBridge |
> | **Culprit** | A push delivery that ran out of retries with no dead-letter queue: only SQS holds messages for slow consumers |
> | **The fix** | End durable processing in an SQS queue, and give every important target a dead-letter queue |
> | **Evidence** | My event-driven reference: outbox to SQS, load-tested at 450 requests/s (on LocalStack) |

## The suspects at a glance

| | SQS | SNS | EventBridge |
|---|---|---|---|
| **Model** | Queue: consumers *pull* | Topic: SNS *pushes* to subscribers | Bus: rules match events and push to targets |
| **Receivers per message** | One (a consumer group shares the work) | Every subscriber | Every rule that matches (each rule up to 5 targets) |
| **Holds messages when receivers are slow or down** | **Yes**: retention 1 minute to 14 days | No: retries delivery, then a dead-letter queue (if configured) | No: retries delivery, then a dead-letter queue (if configured) |
| **Filtering** | None (the consumer decides) | Filter policies on attributes or JSON body, per subscription | Event patterns on any field: prefixes, numeric ranges, `anything-but`, and more |
| **Ordering** | FIFO queues: per message group | FIFO topics: per message group | No ordering guarantee |
| **Delivery** | At least once (standard); exactly-once processing within the deduplication window (FIFO) | At least once | At least once |
| **Max message size** | 1 MiB (raised from 256 KiB in 2025); larger via S3 and the Extended Client Library | Up to 1 MiB per topic setting (2026), for some subscription types | 1 MB per `PutEvents` request |
| **Retries when the receiver fails** | The message reappears after its visibility timeout; after N receives, to the dead-letter queue | Delivery retry policy, then the subscription's dead-letter queue | 24 h / up to 185 attempts by default (configurable per target), then the target's dead-letter queue, otherwise **dropped** |
| **Extras** | Delay queues, long polling, visibility timeout | SMS, email and mobile push endpoints | Schema registry, archive and replay, scheduler, Pipes, SaaS partner sources, cross-account buses |
| **Pick it when** | A job must be done, eventually, by a worker | One event, several independent reactions, now | Many event types, many consumers, routing by content, across teams or accounts |

*Limits as documented by AWS in Nov 2026; check the current quotas pages before designing around them.*

The decisive clue is the third row: "Holds messages when receivers are slow or down". Only one suspect answers yes.

```mermaid
flowchart TD
  A["A message to send"] --> B{"Work one consumer must do?"}
  B -- yes --> Q["SQS with a dead-letter queue"]
  B -- no --> C{"Routing by content, many types or accounts?"}
  C -- yes --> E["EventBridge rules"]
  C -- no --> F["SNS topic fan-out"]
  E --> Q2["One SQS queue per important consumer"]
  F --> Q2
```

## Case 1: a work queue (send the invoice, resize the image)

**The situation:** each order must produce an invoice PDF. Slow, retryable work that exactly one worker should do.

**What I'd use:** **SQS**, with a dead-letter queue.
- Messages wait safely while workers are busy, deploying, or down. A spike becomes a backlog, not an outage (the [queue vs API post](/p/queue-vs-api-writes) covers when a write belongs in a queue).
- **Visibility timeout:** this is SQS's best trick, and it's a lovely one: it means the queue never needs to know whether a worker is alive. A received message is hidden from other workers until it's deleted or the timeout expires. Set the timeout longer than the work takes, or the message comes back while still being processed.
- **Redrive policy:** after N failed receives, a message moves to the dead-letter queue for investigation instead of retrying forever.
- **Idempotency:** delivery is at least once, so the worker must tolerate duplicates.

My [event-driven reference](https://github.com/the-vishal-kumar/multi-tenant-event-driven-ref) is built this way:
- a transactional outbox publishes to SQS;
- a Go worker processes each message idempotently;
- retries back off with jitter;
- failures land in a dead-letter queue with a reason attached;
- an alarm watches queue age.

Its [load test](https://github.com/the-vishal-kumar/multi-tenant-event-driven-ref/blob/main/loadtest/results/README.md) shows the point of a queue: at 450 requests/s the API stayed fast while the queue absorbed a backlog and drained it afterwards. (That test uses LocalStack, not real SQS.)

## Case 2: fan-out (one event, several reactions)

This combination works because each piece covers the other's weakness, which is the kind of fit I enjoy finding.

**The situation:** "order placed" should trigger the confirmation email, a search-index update, an analytics record and a fraud check, each owned by a different team.

**What I'd use:** **SNS topic → one SQS queue per consumer** (or EventBridge → SQS; see case 3).
- SNS delivers each message to every subscriber, immediately.
- Each consumer gets **its own queue**, so a slow or broken consumer builds its own backlog without affecting the others. It can be paused, redeployed or replayed independently.
- **Subscription filter policies** let a consumer receive only what it needs ("only orders over 1,000", "only country = IN"), filtering on message attributes or on the JSON body.
- **SNS FIFO → SQS FIFO** when per-key order matters, for example all events for one order in sequence.

Here's a false lead worth naming: subscribing a Lambda function or an HTTP endpoint directly to SNS also works, but nothing buffers for it beyond SNS's delivery retries. Put a queue in between for anything that matters.

## Case 3: routing events by type across many services

**The situation:** a growing platform with dozens of event types ("invoice.paid", "user.signed_up", "shipment.delayed") and dozens of consumers, some in other accounts. A new consumer should be able to subscribe to exactly the events it cares about without asking the producer to change anything.

**What I'd use:** **EventBridge**.
- **Rules with event patterns** match on any field of the event: source, type, nested values, prefixes, numeric ranges. Producers publish once; routing lives in rules. That separation is the heart of EventBridge, and it's what lets a platform grow without every team coordinating with every other.
- **The schema registry** lets consumers discover what events exist and what they contain.
- **Archive and replay:** keep a copy of events and replay a time window, to backfill a new consumer or recover from a bug.
- **Cross-account and cross-region buses** connect teams without shared infrastructure.
- **Targets are push-based, with limited retries:** by default, 24 hours and up to 185 attempts, then the event is **dropped** unless the target has a dead-letter queue. There's our vanishing message. Give every important target an SQS dead-letter queue, or route into SQS and process from there.

## Case 4: schedules and integrations

- **"Run this at 9:00 every weekday" / "remind this user in 3 days":** EventBridge Scheduler, for one-off and recurring schedules. It's often simpler than a cron server, or than SQS delay queues, which cap delays at 15 minutes (the [delayed-retries post](/p/delayed-retries) compares the options).
- **Events from SaaS tools and AWS services** (a payment provider, an S3 upload, an EC2 state change): EventBridge receives these natively; route them to queues or functions.
- **Texts, emails and mobile push to people:** SNS has these endpoints built in. For transactional email at volume, SES is usually the better tool.

## The clues people forget

None of these services is hard to start with; the subtleties show up later. Here are the ones worth knowing early.

- **Only SQS stores messages for slow consumers.** SNS and EventBridge *deliver*; if the target is down past the retry policy, the message goes to a dead-letter queue, or nowhere. Durable processing almost always ends in a queue.
- **Everything is at least once.** Make consumers idempotent: dedupe by event ID, or use conditional writes. FIFO's deduplication covers a five-minute window, not forever.
- **Ordering is rarer than people assume.** Standard queues, standard topics and EventBridge don't preserve order. If order matters per key, use FIFO with a message group ID per key, and accept lower throughput per group.
- **Publishing atomically with your database write is your problem.** None of these services can join your transaction. Use the outbox pattern (the [consistency post](/p/consistency-without-2pc) measures why).
- **Costs differ by shape:** SQS charges per request (batch and long-poll to cut requests); SNS per publish and delivery; EventBridge per event published to custom buses. At high volume, model the price for your own traffic.

> **Remember this**
> - Only SQS holds messages while a consumer is slow or down.
> - Fan out with SNS or route with EventBridge, then land in a queue per consumer.
> - Everything is at least once: make consumers idempotent.

## Case closed: what I'd do by default

1. **Work to be done → SQS** with a dead-letter queue, idempotent workers, and an alarm on the age of the oldest message.
2. **One event, several consumers → SNS fan-out to SQS queues**, with filter policies per consumer.
3. **Many event types, many teams, routing by content → EventBridge**, with an SQS dead-letter queue (or an SQS target) for every important consumer, and archive enabled for replay.
4. **Publish through an outbox** from the service that owns the data.
5. **Use FIFO only where per-key order is a real requirement.**

Put together thoughtfully, the three make a surprisingly calm system: events fan out, routes stay readable, and every important message ends up somewhere patient enough to wait for it.

*Facts checked against AWS documentation in Nov 2026: SQS's 1 MiB message size (raised from 256 KiB in 2025), SNS's 1 MiB topic setting, EventBridge's 1 MB `PutEvents` limit and its 24-hour / 185-attempt default retry policy, and SNS payload-based filtering on standard and FIFO topics. Sources: [SQS 1 MiB announcement](https://aws.amazon.com/about-aws/whats-new/2025/08/amazon-sqs-max-payload-size-1mib/), [SQS message quotas](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-messages.html), [SNS 1 MiB announcement](https://aws.amazon.com/about-aws/whats-new/2026/09/amazon-sns-1mib-support/), [EventBridge PutEvents](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-putevents.html), [EventBridge retry policy](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-rule-retry-policy.html), [SNS message filtering](https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html).*
