Durable beside Hatchet

An engine dispatches tasks to workers you run. The workers, the idempotency and the compensation stay with you.

A task platform: Hatchet

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 Hatchet gives, as its documentation describes

  1. 1

    Workers you run

    it gives
    Tasks run on long-running worker processes you start in any environment, locally or on a VM. Each registers its tasks with the engine under a client token and holds a fixed count of slots. More workers registering the same task is how it scales.
    you write
    The fleet: written, tokened, sized by slots, deployed and scaled by adding workers.
  2. 2

    A task can run more than once

    it gives
    Tasks are not silently dropped and failures retry per configuration; a task can run more than once, so task code should be idempotent or otherwise safe to retry.
    you write
    Idempotent task code, since a retried task may run again.
  3. 3

    Durable tasks between checkpoints

    it gives
    A durable task checkpoints when it sleeps, waits or spawns a child, and must be deterministic between checkpoints; databases and external APIs belong in child tasks.
    you write
    Every side effect moved into a child task by hand.
  4. 4

    An idempotency key with a window

    it gives
    Idempotency is an expression over a run's input and metadata, set on a workflow or a standalone task, with a sliding window or a claim held while the run is active; a duplicate raises a collision error or, from an event, is absorbed.
    you write
    The expression, and the window or fallback you size.
  5. 5

    Manual retries, no dead-letter queue

    it gives
    There is no built-in dead-letter queue; a failed run persists in the dashboard for manual management and is replayed with its original input from its run view. Runs are cancelled or replayed in bulk by a list of ids or by filters.
    you write
    The undo of what already succeeded when a later task fails: the docs describe an on-failure task that runs when a task in the workflow fails, its body yours, and no reverse declared per task. And the triage of each failed run by a person in the dashboard, one at a time or by filter.
  6. 6

    A dashboard of runs and workers

    it gives
    The dashboard shows runs with their status, inputs, outputs and execution history, the connected workers with their health, and the workflows with their definitions and recent activity. It serves debugging, operational checks and ad hoc triggers.
    you write
    A record of what a task changed in your own tables. The run's history there is its status, inputs and outputs, and the docs describe no before or after image of the rows it touched.
things you write6

The same work under Durable

  1. 7

    No worker to run

    it does
    The engine is a library inside your app's own functions on the Postgres it already has, with a minute cron as the one moving part outside the request path.
  2. 8

    The key is the input's

    it does
    key: ["orderId", "requestId"], a field list that never reads the clock; one run holds the key for its life, so there is no window to size and no collision to catch.
  3. 9

    Side effects stay in the step

    it does
    A step is the one place a body reads the world; its input and output land on a row before the body goes on, and a finished step is served from its row on every later attempt.
  4. 10

    The undo in reverse, then limbo

    it does
    Every step that changes the world declares its undo beside its effect or says why it cannot; the door refuses one that says neither, and the undos run in reverse, each its own row. A failed run waits in limbo for a person after bounded redrives of a transient cause, with its rows, its images and the remedy; nothing is retried in the dark.
  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 fleet, no idempotency expression, no child task per side effect; the ledger holds the before and after image of every write, durable-sdk ledger verify --file <export> walks an export offline, and durable-sdk doctor --host runs every rule before a deploy.
    you write
    The steps and their undos.
things you write1

When Hatchet wins: workers in several languages on machines you choose, an open-source control plane you can run yourself with a dashboard of workers and queues, and an agent loop that spawns many children and streams its progress. 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.