Durable beside Inngest

A service calls your function and memoizes each step. The idempotency key and the cleanup stay with you.

An event-function service: Inngest

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

  1. 1

    A function called over HTTP

    it gives
    An event, a schedule or a webhook starts a run. The service calls your handler over HTTP or through a worker your app connects. A completed step's result is saved as a checkpoint outside your function and returned instead of running again.
    you write
    The route the service calls, with the client and the functions passed to it, a signing key set in production on the deployed app and a sync after each deploy that changes functions. For a connected worker, a long-running server that holds the outbound connection, with the signing and event keys set in production; a serverless runtime is not supported.
  2. 2

    A step can run more than once

    it gives
    A failed attempt can have touched an external system before it threw, and the step is then retried. The docs ask that any effect a retry could repeat be made safe to run twice, by a key of your own, an upsert or a write that tolerates a second run.
    you write
    The safe form of each side effect a retry could repeat, chosen by you for each write, payment and message.
  3. 3

    Deduplication for a window

    it gives
    An event id is an idempotency key for a window of hours, and a function's idempotency expression runs it once per value in that window. The event id's check is skipped by batching, debounce and a paused function, and a repeat past the window is treated as new.
    you write
    Which layer deduplicates, and the same guard once the window has passed.
  4. 4

    Retries, then a failure handler

    it gives
    A step is retried with backoff and jitter. Once the retries are exhausted an onFailure handler, or a function listening for the system failure event, runs the alerting or cleanup you wrote.
    you write
    The handler, written idempotent because it runs as its own function.
  5. 5

    Cancellation undoes nothing

    it gives
    A cancel stops the run between steps, and a step already executing finishes. A completed call is not reversed, and the cleanup is a separate function on a system event.
    you write
    The compensation, and the review of completed side effects before any replay.
  6. 6

    A dashboard with a replay

    it gives
    The run page shows the trigger, the run's input, output and timing over a timeline of its steps, a failed step's retries with their error and timing, and a rerun from a selected step. A replay re-runs many runs of a function by time range and status after a fix, as new executions.
    you write
    The record of what a write found and left. The docs say to identify which side effects completed before any rerun or replay, since either can execute them again.
things you write6

The same work under Durable

  1. 7

    A library, not a service

    it does
    The engine runs inside your own functions on your own Postgres: no store of the vendor's, no second store, a minute cron the one moving part outside the request path.
  2. 8

    One run per intent, for the row's life

    it does
    key: ["orderId", "requestId"], a field list off the input that never reads the clock. A second trigger with the same intent joins the one run, with no window to size.
  3. 9

    A write reads before it writes

    it does
    A provider write is an external step under a writeKey, the intent on the row before the call, so a redrive after a lost answer finds what landed instead of writing again.
  4. 10

    The undo, then limbo instead of a handler

    it does
    A step that declares neither an undo nor the reason it has none is refused at the door; when a later step fails the completed steps' undos run in reverse, each a row with what it found and restored. After bounded redrives of a transient cause the run waits in limbo with its error, its rows and the remedy, never 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 idempotency key chosen by hand, no cleanup function, no window. The ledger holds the before and after image of every write, hash-chained, and durable-sdk doctor --host runs every rule offline before a deploy.
    you write
    The steps and their undos.
things you write1

When Inngest wins: functions in several languages, a browser that must watch a run as it happens, a step that runs for hours on a worker you connect, and a managed dashboard with a query over runs and a bulk replay. 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.