Other engines
Durable execution engines agree on the job. A piece of work should survive a process crash and a wait that lasts days. They disagree on what you write. Temporal and most of the engines below ask for a function, and they keep a journal so that function can resume. Looms asks for an event catalog and pure reducers, and derives state from the log.
The comparison is the programming model. Pricing, retry defaults, and hosted limits move. Follow the links for the current product.
Why the constraints#
For a long time, building a UI meant imperatively updating the DOM. jQuery made the updates shorter. Two event handlers could still edit the same nodes and disagree about what the screen was.
React added a constraint. The UI is a function of state. You describe the screen, and the library updates the DOM. That is less free than reaching into a node and patching it, and large UIs got easier to change. Flux and Redux added a second constraint. State is immutable. The next state is a pure function of the previous state and an action. The action log is the source, and the screen is a view of the fold.
Looms is that shape for work that has to outlive the process. You name the facts that can happen, and a reducer folds them into state. The runtime schedules effects, waits, and recovery. A replayed function keeps that procedure in local variables.
Two records#
| Journaled function | Looms | |
|---|---|---|
| What you author | A function. Side effects live in steps or activities. | An event catalog, reducers, and effect handlers. |
| What the log holds | An execution trace: this step was scheduled, this step returned. | Domain events you named. |
| Where state lives | Local variables, rebuilt by re-running the function against the journal. | A fold of the log. Snapshots checkpoint that fold. |
| Determinism rule | The function must schedule the same steps, in the same order, on every replay. | The reducer must be pure. Clocks, random ids, and HTTP belong in an effect handler, and they come back as events. |
| A live run after a code change | Patch the function, pin the worker, or drain the old deployment. | Keep the definition version the run started with, and evolve event payloads additively. |
| A UI of the same work | A query into workflow state, or a read model you write from inside a step. | A projection over the same log, including in the browser. |
Journaled functions#
Temporal is the reference implementation of this model, and a fork of Uber's Cadence. Azure Durable Functions and Dapr Workflows use the same cut: an orchestrator function replays, and activities do the I/O. You write something that looks like ordinary async code.
// Temporal TypeScript, abbreviated. Timeouts and retries omitted.import { condition, defineSignal, proxyActivities, setHandler } from '@temporalio/workflow'import type * as activities from './activities'const { charge } = proxyActivities<typeof activities>({ startToCloseTimeout: '1 minute',})export const decided = defineSignal<[{ decision: 'approved' | 'rejected' }]>('decided')export async function checkout(order: { amount: number }): Promise<void> { let decision: 'approved' | 'rejected' | undefined setHandler(decided, (input) => { decision = input.decision }) await condition(() => decision !== undefined) if (decision === 'approved') { await charge(order) }}decision is a local variable. charge is an activity. Temporal records a history of commands: workflow started, signal received, activity scheduled, activity completed. The Web UI shows that history. The event types belong to Temporal. The fact that a card was charged sits inside an activity result, or in a workflow variable you remember to set.
Recovery re-executes checkout from the top. Completed activities return their recorded results and do not run again. A Date.now() or a branch that was not there when the history was written makes the commands diverge from the history, and the workflow task fails until the code matches. Temporal's answers are patched() and worker versioning: a pinned workflow stays on the worker version that started it, and an auto-upgrade workflow has to stay replay-safe. Long histories are your problem too. Continue-as-new starts a fresh run and you pass along whatever state the next run needs.
Loops, Promise.all, try/catch, and a signal handler are ordinary code. Teams pick Temporal when a procedure waits on humans and crosses services, and when they want multi-language workers, a visibility store, and Temporal Cloud. The history is an operational log. A ledger or a chat transcript is a second model you write beside it.
The same family#
Several engines keep the function, and change where the journal lives or how the function is re-entered.
Restate journals each handler invocation. ctx.run records a step result, ctx.sleep and awakeables are durable waits, and a crash replays the handler until it passes the end of the journal. Virtual objects add the piece Temporal makes you build: an addressable key, durable key-value state, and exclusive handlers that queue per key. A cart or a session is an object you call. On Temporal, the same shape is a workflow you keep alive with signals and continue-as-new. Restate stores that state as key-value. Each invocation has its own journal of step results. Deployments are immutable: new code is a new endpoint, and in-flight invocations finish where they started, so a handler that runs for days holds an old deployment open. The server is Business Source License; the SDKs are MIT.
DBOS is a library in your process. Workflow inputs and step outputs are checkpointed to Postgres, and recovery re-runs the workflow function, returning checkpointed step results. The function has the same determinism rule as a Temporal workflow. Steps are at-least-once: a crash after the side effect and before the checkpoint runs the step again. A datasource transaction can commit your own database write and the durability record in one Postgres transaction, which is a stronger guarantee than a step, and stronger than Looms claims for an effect. By default DBOS hashes the workflow source into an application version and recovers only workflows of that version, so a drive-by edit leaves the previous version's pending work waiting for a process that still has it. Pin the version and patch, or drain old processes. The library is MIT. Conductor, the control plane, is proprietary.
Inngest memoizes steps. It calls your existing HTTP app. step.run("charge", ...) stores its result under that id, and a later attempt gets the stored result. Code outside a step runs again on every attempt, so an unwrapped model call can bill you once per step and disagree with a later memoized step. Rename the step id and in-flight runs miss the memo and execute it again. Trigger.dev checkpoints tasks in a similar way. Its server is Apache-2.0, and self-hosting it means running more than the library. Hatchet is a task runtime: workers pull durable tasks, and workflows checkpoint those tasks. It is MIT and Postgres-backed.
Cloudflare Workflows and Vercel Workflow are platform step journals. Looms' production host is also Cloudflare. A Looms run on a Durable Object keeps a domain log. These two keep step results. Cloudflare's step.do(name, fn) persists the callback's return value. The run method is re-entered after hibernation, cached steps return stored results, and state outside a step is gone. The step name is the identity. Vercel's "use workflow" and "use step" directives split the same way, with the workflow function replayed in a sandbox that stabilizes Date and Math.random. Steps get a normal Node runtime. Vercel documents skew protection so a run stays on a deployment compatible with its journal.
Resonate makes the durable promise the primitive. An async function suspends on a promise that outlives the process, and the log is promise completions.
Declared graphs#
AWS Step Functions and Netflix Conductor (Orkes) make the program a declared graph: states and transitions, or a JSON workflow and task workers. Operators can run that graph without the application source open. The history records states entered and exited. The state document is JSON the states assign into. A product UI still needs its own read model. Airflow and Argo Workflows schedule tasks, usually data jobs or Kubernetes pods. A retry re-runs the task. Their record is task status.
Checkpointed graphs#
LangGraph is the usual library when the work is an agent. You draw a graph of nodes over a typed state object. Channel reducers merge node writes. A checkpointer stores a snapshot at each super-step, and you can resume, interrupt for a human, or branch from an earlier checkpoint.
The checkpoint is a snapshot of the graph state object. Resume re-invokes the graph from that snapshot. Side effects inside a node can run again, so idempotency stays your job. Time travel re-executes nodes after the chosen checkpoint, which re-issues model calls. LangSmith Deployment is a hosted runtime around the graph. The open-source library leaves a dead process until something calls invoke again. Looms' historical replay folds events and skips effect dispatch.
What Looms inverts#
A Looms run has one append-only log. You define the events in a catalog (approval.decided, payments.charge.authorized). A thread reducer is a pure function from state and event to next state. An effects function reads that state and returns instructions: invoke, spawn, emit, wait. The host performs the I/O and appends the resulting events. Projections fold the same log into a transcript, a ledger, or a pending-approval badge, on the server and in the browser. The execution model writes this as (state, event) → (state, effects). Events & effects is the programming guide.
Agents and DAG workflows are thread kinds on that log. You can ship a defineAgent or defineWorkflow and never write a reducer. The workflow module still records workflow.node.finished and folds it. Scheduling is the reducer. A node function runs when an effect says it should, and its outcome comes back as an event. Recovery folds the log through that reducer. A node whose finish event is already stored stays unrun. An effect whose outcome was not stored yet can run again.
The same checkout, abbreviated. A Temporal history is an execution trace:
WorkflowExecutionStartedWorkflowExecutionSignaled decided { "decision": "approved" }ActivityTaskScheduled chargeActivityTaskCompleted { "chargeId": "ch_123", "amount": 40 }WorkflowExecutionCompletedA Looms log is the facts the application named:
approval.requestedapproval.decided { "decision": "approved" }payments.charge.requested { "chargeId": "ch_123", "amount": 40 }payments.charge.authorized { "chargeId": "ch_123", "amount": 40 }The thread sees approval.decided and requests the charge effect. The handler appends payments.charge.authorized. A ledger projection is a reducer over those events. The debugger's replayTo is the same fold, stopped at a sequence number, skipping the card network. XState is the nearest statechart cousin. You can persist a snapshot of a machine, and you bring the host, the waits, and recovery. Event-sourcing libraries give you the log and the fold, and you build the process manager. Looms is that manager, with the fold as the transition function.
What you give up#
A straight-line integration is less code as a journaled function. Fetch, sleep, charge, email: Temporal, Inngest, DBOS, Cloudflare Workflows, and Vercel Workflow let that be a function with steps. In Looms it is events, a reducer, and effect handlers, or a DAG whose nodes emit those events. Arbitrary control flow inside one function is what you give up.
Looms is TypeScript. Temporal, Restate, DBOS, and Inngest ship several language SDKs. You run the host. Cloudflare Durable Objects is the production path, and Bun with SQLite is the local one. Looms has no control plane, visibility query language, or multi-region workflow service. The library is 0.0.x. The engines above have production histories Looms does not.
External effects are at-least-once when the process dies after the call and before the outcome event is stored. Idempotency keys and reconciliation stay your job. That is the same gap as a Temporal activity or a DBOS step. DBOS can close it for writes to a database it commits with. Looms has that gap.
A run records the definition version it started, and the host has to keep that implementation registered. Old payloads have to keep folding. Prefer optional fields or a new event name, and do not rewrite history so a new reducer will accept it. The migration is the event payloads and the reducers. On Temporal, the migration is the function's control flow. See Changing deployed code.
What the constraints buy#
A control-flow bug is a reducer case. Give it a list of events and assert the next state and the effects it requests. You do not need a worker, and you do not need the function to take the same path it took last Tuesday.
An effect handler reads the clock and the network. The event it appends is what every later fold sees. The rule you can test is that the reducer is pure. Temporal's rule is that the async function must schedule the same steps on every replay.
useProjection runs the same fold in the browser. An agent, a review workflow, and a custom auction are threads on one log, so one debugger shows the whole operation. A fact you did not put in the catalog cannot sneak into state through a local variable. Two parts of the system agree that the card was charged when both of them have folded payments.charge.authorized.
Choosing#
- Temporal, Azure Durable Functions, or Dapr Workflows, when the work is a long-lived procedure, you want several languages or a managed control plane, and the history is an operational concern.
- Restate, when you want durable RPC and per-key objects, and stored key-value state is enough.
- DBOS, when Postgres is already the system of record and you want checkpoints and transactional writes in-process.
- Inngest, Trigger.dev, Hatchet, Cloudflare Workflows, or Vercel Workflow, when you want to wrap steps around an app you already deploy and a step-result log is enough.
- Step Functions or Conductor, when the workflow has to be a declared graph operated outside the application process.
- LangGraph, when the artifact is an agent graph and a checkpointed state object, and you will supply the supervisor and the product read models.
- Looms, when execution, audit, and UI should be folds of one history, and the domain is a state machine fed by events over time: approvals, messages, bids, webhooks. The alternative is an event-sourced process manager and a workflow engine.
Prior art covers the lineage: event sourcing, Flux and Redux, actors, and React. When to use Looms covers fit, hosting, and the costs you take on. Reliability covers retries, idempotency, and snapshots.