FAQ

Why Postgres only, why no worker, how Durable compares to Temporal, Inngest, DBOS and a managed workflow product, and the hosting questions a first week raises.

Open in CursorView as Markdown

Short answers to the questions a first week raises, each with the page that holds the long one. The engine's model is on concepts; the platform's shape on hosting.

The engine#

Why Postgres only? Because the guarantees are transactions: the run and its key commit together, a run's final status and its facts commit together, a step's pending record lands before its write, and a ledger scope takes a row lock. Each is a Postgres feature the engine leans on directly. The SDK owns its tables in a schema of its own, durable, beside your app's in the same database, so a fact and your own row share one commit through the step contract. A second database would mean weakening the contract to what both can do, so there is none. The platform's database is Postgres 16 or newer.

Why no worker? A serverless function gives a few minutes; the engine treats that as the unit of work. A run is claimed with a lease longer than the function's limit, an attempt that outlives its lease is fenced, and the next tick (the minute cron, or the next request) claims the run by id and continues from its stored input. No broker, no queue, no long-lived process to run or to page for. The tick is GET /jobs/dispatch behind a bearer; on the platform the cron is set for you.

What happens when a step fails? The run compensates in reverse (each step's undo, a ledger row for what it found and restored) and parks in limbo for a person: it is never retried in the dark. The Console tab lists limbo with the sentence; Redrive resumes from the stored input, Invalidate dismisses with a reason (the console). A transient cause the engine recognises is redriven once by itself.

How is it different from Temporal? Temporal suspends a function body for as long as it likes, with signals into it, awaited child workflows and a polyglot fleet, over a cluster you run or rent. Durable does none of that: a run lives inside a function's budget, a wait is a stored timer the next tick resumes, and there is no cluster. What Durable adds is the auditable side-effect layer: a hash-chained before/after ledger that never ages out, compensation truth as <step>.undo rows, limbo instead of retries, redaction as a type, and a signed fact relay between apps, all in your own Postgres. Use Temporal for long-lived orchestration across services and languages.

How is it different from Inngest? Inngest is an event-driven function runner with its own hosted state and a 24-hour idempotency key; your functions are steps it replays. Durable keeps the state in your database, keys a run by its intent for the life of the run, and records what each step read and wrote. Inngest does not hold a before/after image or an undo row; Durable does not run a managed event bus for you (a fact is a row in your outbox, delivered to listeners that are runs).

How is it different from DBOS? DBOS is the closest in spirit: durable execution in your Postgres, a workflow id as the key, timers and messages. The difference is what is stored: DBOS records a step's result for replay; Durable records the read, the compare, the write and the image, with the undo beside it and the limbo for a person, and runs inside a serverless function with no process to keep up. Use DBOS when you have a process to run and want queues and messages in the same database.

How is it different from a hosting platform's own workflow product? Those products make a function resumable inside the platform's managed persistence, with an idempotency key you supply. They do not hold a before/after ledger, an undo row, a limbo or a fact relay, and the state lives in the platform, not in your database. Durable's state is rows you can SELECT, in your app's own database.

Can I use it with my ORM? You need none: the SDK migrates its own tables (durable-sdk migrate) and your ORM never models them. The store is a pg pool, yours or the SDK's. Read engine data through the operator API or the Console tab, not through models of your own.

Is the SDK open source? The packages are source-available under their licence, which the repository's LICENSE states; the platform is proprietary. The five compatibility surfaces and the deprecation policy are on compatibility.

The platform#

What do I get when I create an app? A project for the build, a database of its own with a main branch for production and a preview branch every preview shares, the hostnames <app>.durablesdk.com and <app>-git-<branch>.durablesdk.com, the minute cron, the operator API wired to the Console tab, and the template's first deployment answering /health. The whole list is on hosting.

Can I bring my own database? Not in v1: every app's database is provisioned beside it. The read string opens it to any client, read-only.

What happens when a build fails? The deployment is failed with a sentence and a remedy, the run finishes as a value, your hostname keeps serving the previous deployment, and durable-sdk deploy exits 1 with the build's lines on stderr. Fix and deploy again, or durable-sdk deployments redeploy <id> for the same tree under new variables (deploy).

What happens when a production build passes but the check is red? It stays on its own hostname, never promoted, with the check's rows on the deployment page (plane.deploy.check_failed). Your production hostname is untouched.

How do I get my data out? durable-sdk db read-string prints a read-only connection string once; pg_dump over it is the export. Deleting an app starts a hold of your tier's days before anything is purged (compliance).

Why does my preview's timer fire late? A preview has no scheduled tick: a timer wake there resumes at the app's next request. Production has the minute cron. GET /apps/:slug/environments says tick: "request-only" for a preview.

Where is staging? DS-035 on the roadmap; --target staging is refused plane.tier.staging until then.

Can an agent do all of this? Yes, with a key: the agents page has the first commands, every page is Markdown at /docs/<slug>.md, the API is /openapi.json, and every error is a code durable-sdk explain <code> answers offline.