The mental model

SQS buffers messages for consumers that process and acknowledge work. SNS distributes published notifications to subscribers. Combining them can give independent consumers their own queues. This decouples production from processing speed, but a queue can also hide a growing backlog if no one measures message age and processing success.

Standard SQS delivery can produce duplicates and out-of-order messages. Set a visibility timeout that fits processing, make consumers idempotent, and route repeatedly failing messages to a dead-letter queue with a review plan. FIFO features have specific ordering and deduplication semantics; they do not make arbitrary downstream business side effects exactly once.

Decisions to make

  1. Use a queue when a consumer needs durable buffering and independent processing capacity.
  2. Treat duplicates and poison messages as normal design cases, not rare surprises.

Design exercise · no AWS resources needed

Work through a scenario

An image worker receives the same job twice and sometimes crashes.

  1. Choose a durable job identifier for duplicate detection.
  2. Explain what happens when visibility expires before acknowledgment.
  3. Define who investigates messages in the dead-letter queue.

Check your understanding

What should a standard SQS consumer assume?

Continue with AWS documentation

Before following a deployment guide, review current pricing, permissions, and cleanup steps. Budget alerts are not a hard spending cap.

Saved in this browser. Press again to undo.

Prepaid · USD

Top up balance

Available balance: $0.00

Your balance works across Heap tools. A failed lookup or generation releases its reserved amount.