Durable beside SQS

A standard queue hands you delivery. Everything after the receive is yours.

A queue: SQS

What it gives by its own documentation, what that leaves you to write, and the same work under Durable. Each product compared has a page like this one.

12 / 12

What SQS gives, as its documentation describes

  1. 1

    At-least-once delivery

    it gives
    A standard queue delivers each message at least once; a copy can arrive more than once.
    you write
    An idempotency check in the consumer, keyed on a field you choose and stored somewhere you keep.
  2. 2

    A visibility timeout

    it gives
    A received message is hidden from other consumers for the timeout; the consumer deletes it when the work is done.
    you write
    A deadline on your own work, extended by hand when a step runs long.
  3. 3

    Redelivery

    it gives
    A message not deleted before the timeout ends becomes visible again and is received again.
    you write
    A status column, so the second receive can tell what the first one already did.
  4. 4

    A dead-letter queue

    it gives
    After a set number of receives the message moves to a dead-letter queue you name.
    you write
    The compensation when the third step of four fails: by hand, before the message moves, with no record of the first two.
  5. 5

    Ordering

    it gives
    A standard queue orders at best effort; a FIFO queue keeps the order inside a message group.
    you write
    The order of your own steps across receives, when a later receive overtakes an earlier one.
  6. 6

    FIFO deduplication

    it gives
    A FIFO queue accepts a second message with the same deduplication id inside a deduplication interval and does not deliver it.
    you write
    The same guard once the interval has passed, and the record of what each receive changed.
things you write6

The same work under Durable

  1. 7

    The delivery id is the intent key

    it does
    key: ["messageId"]. A redelivery joins the one run, and a step already done is served from its row, never called again.
  2. 8

    Each step a row, then the undos in reverse

    it does
    The image it found and the image it left, hash-chained, append-only: the record of what each receive changed, written by the engine. The completed steps' undos run in reverse, each its own row, and the run waits in limbo with its rows for a person, no dead-letter queue to read back.
  3. 9

    What the queue leaves to the consumer is an option here

    it does
    The key dedupes for the row's life, not for an interval; a delay has no short cap; the retry ladder is declared on the listener; debounce, throttle, priority and fair share are options on a per-row listener; the outbox archives and replays; one failed run waits in limbo, never in a second queue.
  4. 10

    One bad row parks alone

    it does
    A per-row listener registered beside a batch listener parks the row it failed on alone, with its run named, while the rows whose reactions completed are delivered in the one statement.
  5. 11

    The agent asks the graph

    it does
    durable-sdk explain <workflow> prints what the door admits, every step with its undo and its writes, the facts and who listens; durable-sdk graph walk <subject> prints the closure from any node; durable-sdk graph impact --changed prints what a change reaches before it is made. Offline, over a committed index: an AI coding agent asks before it edits, never guesses.
  6. 12

    Nothing to write but the steps

    it does
    No status column, no idempotency check, no compensation by hand, no record kept by hand.
    you write
    The steps and their undos.
things you write1

When SQS wins: fire-and-forget fan-out at very large volume, with one idempotent handler that changes nothing worth imaging. The walk in prose, with its sources.

The whole table, with every source, in Compared.

One charge, and a row that says so.

Two commands to an app with a ledger, and one that asks the graph what happens before you edit.