Skip to content
Durable Execution Guide
Menu

Durable Execution Guide

Count the managed engines, then read where open-source Kortix puts the record

A durable execution engine comparison usually starts with replay models and licenses. The choice that outlasts the vendor is whose account holds the run record. Kortix is the open-source CompanyOS: your agents, their skills, your company memory, and every connector in one git repo you own, with the agents working on real cloud computers.

Six engines and a CompanyOS, and the one row that decides: where the run record lives

What each one records, who holds it, what the run hands back, and where it fits. For agent work I would start with Kortix; I work at Kortix, so weigh that accordingly.

Recommended

Kortix

What it is
A CompanyOS; sessions run agents, not steps
What the record is
A branch of your repo with the commits an agent pushed
Where it lives
In the git repo you own
Open source
Yes
License
Open source
Self-host
Yes: Cloud, your VPC, or on-premises
What the run hands back
A change request a person merges
Where it fits
Agent work whose result a person reviews

Temporal

What it is
Workflows and Activities dispatched to polling workers
What the record is
The workflow's event history
Where it lives
Your database, or Temporal Cloud's storage
Open source
Yes
License
MIT
Self-host
Yes: brew install temporal
What the run hands back
A finished workflow and its history
Where it fits
Long-running workflows with timers and signals

Restate

What it is
Durable execution for ordinary code, each step journaled
What the record is
A journal of each step, replayed against your code
Where it lives
In the engine you run, beside your service
Open source
No
License
BSL 1.1, forbids a public Restate service
Self-host
Yes: one binary, Docker or npx
What the run hands back
A finished invocation with its journal
Where it fits
Durable steps inside ordinary code, in your cloud

DBOS

What it is
Durable workflows built on Postgres, inside one library
What the record is
Rows in the Postgres you already run
Where it lives
The database you already operate
Open source
Yes
License
MIT
Self-host
Yes: it is a library
What the run hands back
A completed workflow, recorded in Postgres
Where it fits
Teams that already run Postgres

Cloudflare Workflows

What it is
Durable multi-step applications on Cloudflare Workers
What the record is
Workflow instance state, in your Cloudflare account
Where it lives
Your Cloudflare account; 30 days retained on Workers Paid
Open source
No
License
None to compare: managed
Self-host
No
What the run hands back
A completed instance, or one paused for approval
Where it fits
Durable steps next to Workers

AWS Step Functions

What it is
State machines of event-driven steps, called states
What the record is
Execution history for each state machine run
Where it lives
Your AWS account; history kept 90 days after a close
Open source
No
License
None to compare: managed
Self-host
No
What the run hands back
An execution record; one year maximum on Standard
Where it fits
Orchestration across AWS services

Diagrid Catalyst

What it is
Durable, verifiable workflows with agent and MCP messaging
What the record is
A tamper-evident record, each step signed
Where it lives
Diagrid's control plane; data plane in your environment
Open source
No
License
None to compare: managed
Self-host
No: managed, runs in your environment
What the run hands back
A signed step record an auditor can check
Where it fits
Agents and workflows that need a signed step record

The row that decides the choice

Temporal compresses the category into five words: "Durable Execution is crash-proof execution" (Temporal's definition). Restate takes a paragraph. Its page describes a durable execution engine that "records each step of a function as it runs" (Restate's definition). That record is what makes ordinary code survive a crash, a restart or a lost machine.

Both descriptions point at one loop. A step finishes, its result is written down, and the process dies. The next attempt reads the last written result and carries on from that point, which is why retries stop needing a hand-built state machine, why a timer outlives a deploy, and why a run can move to another machine mid-flight, and why a crash stops being a restart.

Neither definition says where the writing happens. That is the row to read first, because it settles three later questions at once: who can read the record, what it costs to keep, and what you carry out when you change tools. A record in a database you operate moves with a dump. It joins your other tables in a query, and it outlives the tool that wrote it. A record held by a managed service moves when that service offers a way out. Until then you read it through their API, for as long as you keep the subscription.

Both arrangements work, and they fail differently. The replay model is the visible difference between engines. The disk the record lands on decides what a team can do next year.

A comparison assembled from GitHub projects misses Cloudflare Workflows, AWS Step Functions, Diagrid Catalyst and Azure's managed scheduler, because a managed service has no self-host edition to install. They are also the shortest path for a team already on that cloud. Nothing to size, nothing to patch, no database to keep awake.

Cloudflare Workflows runs durable multi-step applications on Workers, retries failed tasks, persists state "for minutes, hours, or even weeks" and can "pause for external events or approvals" (Cloudflare's docs). AWS Step Functions models a workflow as "a series of event-driven steps", one state per step. "Standard workflows have exactly-once workflow execution and can run for up to one year." Express workflows stop at five minutes (AWS's docs).

Azure Durable Task is "a framework for building fault-tolerant workflows and orchestrations as ordinary code". It ships SDKs for self-hosted applications, plus a managed scheduler that holds orchestration state, so a team can choose per workload where that backend lives (Microsoft's docs).

Diagrid Catalyst sells "durable, verifiable workflows, secure agent and MCP communication". It runs on "any cloud, Kubernetes, or on-premises". Every step is signed into a "tamper-evident record" (Diagrid). Vercel Workflows lets code pause "for minutes or months" and resume "from the exact point", with Vercel keeping the state and the event logs in its managed persistence (Vercel's docs).

The trade is the same in each case. None of them is a store you can dump and move on your own schedule. The run length is a limit the vendor publishes, and the export path is the thing to test before the first workflow ships.

The open-source engines, and where each one writes

Temporal and Restate both keep a log. In Temporal, applications are Workflows and Activities dispatched to polling workers, with Activities, Timers, Signals, Queries, Updates and Schedules as the durable primitives (Temporal's pricing). Self-hosted, the event history sits in the database beside the server. On Temporal Cloud it sits in Temporal's storage. Restate ships as a single binary that journals each step as the function runs (Restate's repository).

Inngest, Trigger.dev and Hatchet cover the event-driven end. Inngest's durable functions are built from triggers, flow control and steps. They sync with the Inngest Platform or with a server a team runs. Trigger.dev calls itself "the open-source platform for building AI workflows in TypeScript". It runs long tasks with no timeout, retries, queues, idempotency, and a pause until a person approves. Hatchet is "a platform for orchestrating background tasks, AI agents, and durable workflows at scale". It runs as Hatchet Cloud or self-hosted (Trigger.dev, Hatchet).

DBOS takes the shortest path. Its durable workflows run on Postgres. The library is "entirely contained in this open-source library, there's no additional infrastructure for you to configure or manage" (DBOS Transact). Prefect turns Python functions into pipelines and tracks their state, self-hosted or on Prefect Cloud (Prefect's docs). Golem is the outlier. It is "a secure, reliable runtime for agents, tools, and artifacts, powered by lightweight durable WASM VMs, with permissions agents can't bypass", with agents written in Rust, TypeScript, Scala or MoonBit (Golem).

What each license allows a team to do

Most of these licenses sit where a team expects. Temporal, DBOS and Hatchet are MIT. Trigger.dev and Prefect are Apache-2.0. Both allow the internal deployment almost everyone starts with. Either allows a fork if the project stalls.

Restate and Golem use the Business Source License 1.1, which is not an OSI open-source license. Restate's additional grant forbids offering a public Restate platform service, a clause to read before hosting the engine for anyone outside your own company (Restate's license). Inngest's server and CLI sit under the Server Side Public License, which publishes the code under Apache 2.0 after a delay, and its SDKs are Apache 2.0 today (Inngest's repository).

For an internal deployment the license changes little about the architecture. It decides what a platform team may sell later. It also decides whether a fork exists the year the project changes direction.

Two meters, and the one that charges per step

Temporal Cloud is pay as you go. The first 90 days are free with $150 in credits. There is no base fee. After that it charges $0.042 per GB-hour of active storage and $0.00105 per GB-hour retained, with Business from $500 a month for 2.5 million actions and 100 GB of retained storage (Temporal's pricing). A per-action meter prices the record itself. A durable call inside a loop becomes a line item.

Restate answers with a deployment model instead. Its comparison says BYOC runs the binary inside your cloud account. It also claims "up to 10× more cost efficient" than Temporal Cloud, with "a few milliseconds" of overhead per durable step (Restate's comparison, its own claim). DBOS has no per-step meter, because the step is a row in a Postgres instance the team already pays for. AWS prices Standard workflows by state transition, so the bill becomes a count of steps.

Where Kortix sits, and what it does not do

Kortix is not a durable execution engine. It keeps no step journal, and it does not replay an interrupted step. What it keeps is a branch.

"Every session starts its own isolated cloud computer, called a sandbox." The branch takes the session's name, and it is "a private copy of the repository". The prompt the agent reads states the consequence (agents/worker.md):

The session you're in is an isolated sandbox — an ephemeral branch of this repo …Only what you commit + push survives.

The docs describe the rest. "When the agent finishes, it opens a change request: a request to merge that branch into the shared one." Merge is default-deny for agents. A person with the permission accepts the work, and the record a reviewer reads is the diff (Read the docs).

For agent work, that is the useful half of durability. A model call that edits twelve files does not want to be replayed, because a replay repeats the bill and rewrites files a person may already have reviewed. The failure worth guarding against is a bad diff. The acceptance step is someone reading the branch.

An engine still wins where the work is orchestration: several services in different languages, timers measured in months, deterministic logic replayed against recorded inputs. If that is the shape of the job, choose from the table. If the output is a change a person reviews, start with Kortix and keep an engine for the orchestration around it. The record's owner deserves as much attention as the replay model.

Read what durable execution means, durable workflows and how it compares with running agents for the rest of the picture.

Four questions the table cannot answer

What is a durable execution engine?

A service that writes down each step of a running program as it finishes, so a crash, a redeploy or a lost machine resumes from the last recorded step instead of starting again. Temporal calls the result crash-proof execution; Restate describes the engine as recording each step of a function as it runs.

What is an execution engine?

The part of a system that runs work: it takes a task, performs it, and records what happened. A durable execution engine adds persistence and replay, so the same work continues after a failure rather than repeating from the start.

What is the best open source workflow engine?

There is no single answer, because the choice follows where the run record should live. Temporal, DBOS, Hatchet and Prefect are open source and self-hostable, while Cloudflare Workflows and AWS Step Functions are managed only. For agent work a person reviews, Kortix keeps the record in a branch of your repo.

What is a durable workflow?

A workflow whose progress is written down as it runs, so an interruption resumes it at the last completed step. The steps, their inputs and their results form the record, and the engine replays from it. Temporal, Restate and the managed services all keep that record somewhere, and where they keep it is the part that differs.

Start with one branch and one change request.

Self-host free on your own network, or run sessions on Kortix Cloud.

Self-host is free · Read it, fork it, audit it · Every action is recorded. Reading, exporting and streaming the audit log depend on the plan