1 December 2026 · 3 min read · Download as PDF

SQS, SNS and EventBridge: choose by the job

Three AWS messaging services can carry an order event. The useful choice is who must receive it, who owns retries and whether the message represents work or a fact.

Part 1 of 6 · From Event to Outcome: AWS Messaging Patterns

Cover: SQS, SNS and EventBridge: choose by the job

Use Amazon Simple Queue Service (SQS) to hold work, Amazon Simple Notification Service (SNS) to distribute copies to subscribers, and Amazon EventBridge to route events. An order can use all three. Fulfilment, notifications and analytics each care about the same order, and each has a different job.

Part 1 of 6 in From Event to Outcome, a series on AWS messaging patterns.

Where this fits. Follow one fictional online order through the series. The Orders API accepts the customer’s request. Once the database commits it, the application publishes OrderPlaced, a fact other parts of the system can act on. The fulfilment system then checks payment and stock before shipping. This first part maps the roles. Part 2 starts at the database commit and shows how the event reaches the bus.

EventBridge routes OrderPlaced to an SQS fulfilment queue and to an SNS notifications topic. Step Functions coordinates fulfilment after work reaches the queue.

TL;DR

  • Amazon SQS holds work for a consumer to pull. Use it to absorb a spike and let a worker catch up. A queue is also a useful boundary for one consumer’s retries.
  • Amazon SNS publishes one message to multiple subscriptions. SNS can push to SQS, Lambda or HTTP/S, with filtering at each subscription.
  • Amazon EventBridge routes events to interested consumers. A Classic bus uses rules and targets such as SQS, SNS and Step Functions. It fits a business event that multiple teams may interpret differently.
  • AWS Step Functions is the workflow coordinator when a single business process needs ordered steps, waits, branching and an outcome.

An order through all three

Our Orders service commits an order and publishes OrderPlaced to an EventBridge Custom Event Bus - Classic. This series follows that rule-and-target design with an optional archive. AWS recommends evaluating the newer Custom Event Bus for new applications. Its consumers create subscribers, and the bus retains events for replay. A rule routes the event to a fulfilment SQS queue. Another sends it to an SNS topic whose subscriptions deliver notification copies. A third routes it to an analytics queue. The fulfilment queue is consumed independently of the other two branches. An EventBridge Pipe polls that queue and starts a Step Functions execution to handle payment and stock checks.

The Orders API records an order and outbox entry. EventBridge routes the event to fulfilment, notifications and analytics. Payment and stock checks precede shipping.

The diagram shows the order and outbox committing together. A separate publisher forwards the committed event, and shipping waits for payment and stock approval. Notifications and analytics process their own copies.

The bus decides which capabilities are interested in the event. The queues decide how much unfinished work each capability can hold and how it retries. SNS is useful where a topic owns a straightforward one-to-many distribution. Step Functions decides when the fulfilment process has actually finished. These responsibilities are different, which is why the products can be combined without being interchangeable.

A quick design test

Ask four questions before drawing arrows:

  1. Is this a command for one owner, or a fact that has happened? ChargeThisOrder belongs to an owner; OrderPlaced can have several subscribers.
  2. Does a slow consumer need a durable backlog? Put a queue at that consumer boundary.
  3. Do subscribers need different filters and targets? SNS subscriptions or EventBridge rules can express that; choose based on the event shape and integration needs.
  4. Does the business need to wait for several steps and know the outcome? Use a workflow rather than treating successful event delivery as successful fulfilment.

The trap in a three-column comparison

“Fan-out” does not mean every subscriber finishes successfully. “Queue delivered” does not mean a worker completed the task. “Workflow started” does not mean the workflow succeeded. Keep a separate signal for each boundary: accepted by the service, processed by the consumer and completed by the business process.

Next: how the Orders service can publish OrderPlaced without losing it between a database write and an event API call.

From Event to Outcome

  1. SQS, SNS and EventBridge: choose by the job (you’re here)
  2. Publishing an event without losing the order
  3. Fan-out without coupling every consumer
  4. The consumer is where reliability becomes real
  5. Events into Step Functions: rule, pipe or API?
  6. Fan-in, recovery and the end of the event story

More from the blog