---
agent:
  instructions: "Use this search API to find relevant guides, AI tools, glossary terms, and installable Claude Code agents, skills, and commands across AgentsCamp with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown. Optional query parameters: type (guide|tool|glossary|agent|skill|command) and limit (1-20, default 10)."
  endpoint: "https://agentscamp.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://agentscamp.com/llms.txt"
title: "Best Durable Execution Engines for AI Agents in 2026: Temporal vs Restate vs DBOS vs Inngest"
description: "Temporal, Restate, DBOS, Inngest, Trigger.dev, Cloudflare Workflows, and Hatchet compared on LLM memoization, HITL sleep, replay, and self-hosting."
url: "https://agentscamp.com/guides/comparisons/best-durable-execution-engines-for-ai-agents-2026"
---

# Best Durable Execution Engines for AI Agents in 2026: Temporal vs Restate vs DBOS vs Inngest

> Temporal, Restate, DBOS, Inngest, Trigger.dev, Cloudflare Workflows, and Hatchet compared on LLM memoization, HITL sleep, replay, and self-hosting.

Author: Imtiaz Rayhan | Published: 2026-12-04 | Reviewed: 2026-12-04

Durable execution engines journal LLM and tool boundaries so agents survive crashes and pause days for approvals without burning compute. Temporal leads on scale and SDK breadth, Restate on Virtual Objects, DBOS on zero-server Postgres, Inngest and Cloudflare on serverless waits, Trigger.dev on Cloud TypeScript UX, and Hatchet on MIT Postgres queues.

## Key takeaways

- Durable execution is the backend infrastructure counterpart to saving agent progress to disk: completed LLM calls and tool side effects are memoized so restarts resume cleanly without double-charging tokens or duplicating mutations.
- Check whether waiting actually frees resources in self-hosted mode: DBOS's pure MIT library holds threads during waits (zero-resource suspend=True requires proprietary Enterprise Extensions + Conductor), and Trigger.dev's CRIU checkpoints are Trigger.dev Cloud-only.
- Check SDK parity before committing: Trigger.dev has no native Python SDK (Python runs via subprocess build extension), and Inngest's Python SDK lacks Checkpointing, step.waitForSignal, step.ai.wrap, and Durable Endpoints as of December 2026.
- Temporal offers the broadest GA AI framework ecosystem (OpenAI Agents SDK, LangGraph, Vercel AI SDK, Pydantic AI, Google ADK, Strands, Spring AI) under MIT, at the cost of heavier cluster ops and strict 2 MB payload and determinism rules.
- Restate packs journaled execution and per-session Virtual Object state into a single Rust binary (BSL 1.1) with FaaS suspension, while Cloudflare Workflows scales to 50,000 concurrent running instances and millions of zero-cost sleeping waits on Cloudflare's edge.
- Hatchet gives Python, TypeScript, Go, and Ruby teams full MIT Cloud/self-hosted parity on Postgres with strong multi-tenant rate limiting and durable task slot eviction.

In a single coding session, writing intermediate state to a `PLAN.md` file is enough to survive context compaction—the pattern we cover in [building multi-step workflows](/guides/advanced/building-multi-step-workflows). In a production backend serving concurrent users, a markdown file will not save an agent when a container OOMs on step seven, a rolling deploy kills a pod mid-tool-call, or a finance lead takes three days to approve a [human-in-the-loop gate](/guides/workflow/human-in-the-loop-ai-workflows).

Durable execution engines solve both failure modes at the runtime layer. They journal every non-deterministic LLM response and tool call so retries never double-spend tokens or repeat side effects, and they persist execution state across long approval waits. The seven engines compared here represent five genuinely different architectures—and the catches that bite teams in production almost always live in self-hosting parity, SDK feature gaps, and wait-compute rules rather than headline marketing features.

## The summary table

| Engine | Execution model | LLM/tool memoization | HITL wait primitive | Waiting consumes compute? | Official SDKs | License & self-host ops |
| --- | --- | --- | --- | --- | --- | --- |
| Temporal | Event-sourced replay; central cluster + polling Workers | Activities (`@activity.defn`); AI plugins wrap model/MCP calls | Signals, Updates, Timers (up to 100 yrs) | No for Workflow state (long-lived Workers poll unless Serverless Workers Public Preview as of Dec 2026) | 8: Go, Java, Python, TS, .NET, Ruby, PHP, Rust | MIT; multi-service cluster + Postgres/MySQL/Cassandra (+ ES/OpenSearch) or Cloud |
| Restate | Single Rust binary log (Bifrost + RocksDB + Raft + S3) & Virtual Objects | `ctx.run` / `yield* run` | Signals, Awakeables, Workflow Promises, `ctx.sleep` | No (suspends cleanly on Lambda, Cloud Run, Workers, containers) | 7: TS, Python, Java, Kotlin, Go, Rust, Ruby (active dev) | BSL 1.1 server (Apache 2.0 after 4 yrs), MIT SDKs; single binary, Cloud, or BYOC |
| DBOS | In-process Postgres library (zero external orchestrator server) | `@DBOS.step` / `DBOS.runStep` + atomic DB transactions | `DBOS.recv` / `send`, `DBOS.sleep`, `set_event` | **Yes in pure MIT OSS**; zero-resource `suspend=True` requires proprietary Enterprise Extensions | 4 GA: Python, TS, Go, Java (+Kotlin); Rust pre-prod | MIT library + Postgres; proprietary Conductor (multi-node failover) & Enterprise Extensions |
| Inngest | Serverless HTTP step checkpoints + eager client Checkpointing (TS v4) | `step.run`, `step.ai.infer` (offloaded LLM HTTP), `step.ai.wrap` (TS) | `step.waitForEvent` (CEL), `step.waitForSignal` (TS/Go), `step.sleep` | No (suspends compute; `step.ai.infer` also pauses during LLM calls) | 3: TS (leader), Python (feature gaps), Go | SSPL v1.0 (Apache 2.0 after 3 yrs); single Go binary + Postgres/Redis or Cloud |
| Trigger.dev | TypeScript container tasks (v4) + CRIU process snapshots on Cloud | Subtasks (`triggerAndWait` + idempotency key); `chat.agent` Sessions | `wait.forToken`, `wait.for` / `until`, hosted webhook waiters | Cloud: No (>5s waits, tokens); active LLM calls billed. **Self-hosted: NO CRIU checkpoints** | 1 native: TS/JS (Python via subprocess build extension only) | Apache 2.0; Docker/Helm stack (Cloud required for CRIU, warm starts, auto-scaling) |
| Cloudflare Workflows | Edge V8 isolates + Durable Objects per-instance storage | `step.do(name, fn)`; `ThinkWorkflow` `step.prompt` | `step.waitForEvent`, `step.sleep` (365d), `waitForApproval` | No (zero CPU & excluded from concurrency; millions waiting) | TS/JS (GA); Python Workflows SDK (Open Beta as of Dec 2026) | Proprietary managed SaaS only (`cloudflare/agents` SDK is MIT) |
| Hatchet | Postgres-backed task queue + deterministic Durable Tasks (v1) | Child tasks spawned from `@hatchet.durable_task` | `waitForEvent` (CEL + lookback), `sleepFor`, `OrGroup` | Worker slots freed via `EvictionPolicy` (gRPC workers run unless scaled) | 4: Python, TS, Go, Ruby | MIT; full Cloud/self-hosted parity (Postgres + optional RabbitMQ) |

## Five architectural trade-offs that matter for AI agents

All seven engines can run a retryable LLM loop. What separates them in production are five concrete engineering questions:

- **Replay determinism vs. process snapshotting.** Replay engines (Temporal, Restate, DBOS, Inngest, Cloudflare Workflows, Hatchet Durable Tasks) re-execute your orchestration code after a crash or wait, substituting stored outputs for completed steps. That requires keeping random IDs, wall-clock calls, and side effects inside explicit step boundaries. Trigger.dev Cloud avoids replay determinism on waits by freezing the entire Linux process with CRIU and restoring memory on the exact same line—at the cost of losing that capability when self-hosting.
- **Who pays for LLM inference wait time?** Calling a slow reasoning model can take 45–120 seconds of pure network wait. Serverless functions billed on wall-clock duration burn money sitting on an open socket. Cloudflare Workflows bills active CPU time rather than network I/O wait, and Inngest's `step.ai.infer()` offloads the outbound LLM HTTP request so your serverless function pauses during inference; by contrast, Trigger.dev bills container compute while `generateText()` or `streamText()` is waiting on the model provider.
- **Zero-compute HITL suspension—really or only on paid tiers?** Verify whether a three-day approval pause actually releases memory and concurrency slots in your deployment model. In pure MIT DBOS, waiting workflows remain resident in memory holding a thread; zero-resource suspension (`suspend=True`) requires paid Enterprise Extensions plus DBOS Conductor. In self-hosted Trigger.dev, CRIU checkpoints do not ship at all.
- **Payload and history caps vs. long agent trajectories.** Multi-turn agents accumulate megabytes of tool output, DOM snapshots, and conversation history fast. Temporal caps single payloads at 2 MB (fixed on Cloud) and Event History at 51,200 events / 50 MB; Inngest caps runs at 1,000 steps and 32 MiB total state; Cloudflare caps non-stream step returns at 1 MiB (1 GB Paid instance state); Hatchet warns that payloads above 1 MB bottleneck Postgres. Plan claim-check offloading to object storage early.
- **SDK and license alignment.** Check whether your primary language is first-class (especially Python vs. TypeScript) and whether source-available licenses (Restate's BSL 1.1, Inngest's SSPL v1.0) or managed-only runtimes (Cloudflare Workflows) clear legal review.

## The engines, one at a time

### Temporal: enterprise scale and the broadest AI framework ecosystem

[Temporal](https://docs.temporal.io/ai) is the veteran event-sourced replay engine. A central Temporal Service persists every workflow command and completed result in an append-only Event History while your Workers long-poll Task Queues over gRPC. Non-deterministic LLM requests, MCP tool calls, and external API writes run inside **Activities**, which retry independently and return memoized outputs on replay. Human-in-the-loop gates combine `workflow.wait_condition` with **Signals** (async), **Updates** (synchronous validated writes), and durable Timers up to 100 years on Cloud—consuming zero worker memory once evicted from the sticky cache.

No other engine matches Temporal's official AI framework coverage as of December 2026: GA integrations cover the OpenAI Agents SDK (`temporalio-openai-agents` and `@temporalio/openai-agents`), [LangGraph](/tools/langgraph) (`temporalio-langgraph`), Vercel AI SDK, Pydantic AI (`TemporalAgent`), [Google ADK](/tools/google-adk), AWS Strands, Microsoft Agent Framework, Spring AI, and Mastra, alongside **Temporal Nexus** (GA) for cross-team agent gateways. **External Storage** (built-in S3 claim-check offloading), **Serverless Workers** (AWS Lambda and GCP Cloud Run), and **Workflow Streams** are in Public Preview as of December 2026, while the Claude Agent SDK Python plugin and Bedrock AgentCore Runtime workers are in pre-release as of December 2026.

The trade-offs are operational weight and strict runtime boundaries. Both the server and all eight official SDKs are **MIT**, but self-hosting means operating multi-service Go infrastructure backed by Postgres, MySQL, or Cassandra (plus Elasticsearch or OpenSearch for large-scale Visibility). Per [Temporal's documented limits](https://docs.temporal.io/workflow-execution/limits), single payloads cap at 2 MB (fixed on Cloud), gRPC transactions at 4 MB, and Event History at 51,200 events or 50 MB—so long-lived conversational agents must call `Continue-As-New`. Python and TypeScript workflows also execute inside deterministic sandboxes that block unguarded non-deterministic imports, and code updates to in-flight runs require Patching or Worker Versioning.

**Verdict:** the safest default for polyglot engineering orgs and high-scale multi-team agents that want MIT self-hosting and turnkey plugins for nearly every major agent framework.

### Restate: single-binary log runtime and stateful Virtual Objects

[Restate](https://docs.restate.dev/ai) collapses orchestration, durable journals, timers, and keyed K/V state into a single Rust binary (`restate-server`) backed by its Bifrost replicated log, embedded RocksDB, Raft metadata consensus, and periodic S3 snapshots—with no external database or message broker to operate. Rather than modeling everything as heavyweight batch workflows, Restate exposes stateless Services, single-writer keyed **Virtual Objects** (a natural fit for per-conversation or per-user agent sessions), and exactly-once Workflows. Wrapping model or tool calls in `ctx.run` (or `yield* run` in TypeScript Durable Coroutines) journals results; **Signals**, HTTP-resolvable **Awakeables**, and **Workflow Promises** suspend handlers completely across AWS Lambda, Cloud Run, Cloudflare Workers, Vercel, or containers without burning wait compute.

Restate ships seven official MIT SDKs (TypeScript, Python, Java, Kotlin, Go, Rust, and Ruby in active development as of December 2026), official integrations for Vercel AI SDK, OpenAI Agents SDK, Google ADK, [Pydantic AI](https://pydantic.dev/docs/ai/capabilities/durable_execution/overview/), LangChain, and LiteLLM, plus its first-party TypeScript **Restate Harness** (`@restatedev/harness`) with chunked Virtual Object sessions, lazy state preloading, approvals, steering, and forced-replay testing.

Watch three sharp edges documented in [Restate's architecture and production guides](https://docs.restate.dev/references/architecture). First, Restate Server uses **BSL 1.1** (converting to Apache 2.0 after four years), which allows free internal and SaaS production self-hosting but prohibits offering a competing public managed Restate platform. Second, the default **inactivity timeout is 1 minute** (10-minute abort)—slow reasoning models will trigger unwanted retries unless you raise handler timeouts explicitly. Third, awaiting an awakeable or signal inside an **exclusive handler** of a Virtual Object blocks and queues every other call for that session key until the wait resolves, so approval gates belong in a stateless service or Workflow.

**Verdict:** the cleanest architecture for low-latency, per-session stateful agents and FaaS-native suspension without operating Postgres or a multi-service cluster.

### DBOS: zero-server Postgres library with commercial suspension caveats

[DBOS](https://docs.dbos.dev/architecture) takes the opposite operational approach: no external orchestrator server sits in the execution path at all. You install the MIT-licensed `DBOS Transact` library (`dbos` in Python, `@dbos-inc/dbos-sdk` in TypeScript, plus GA Go and Java/Kotlin SDKs; Rust `0.6` is pre-production as of December 2026) directly into your existing app and point it at PostgreSQL. Annotating agent turns with `@DBOS.workflow()` and model/tool calls with `@DBOS.step()` checkpoints outcomes into a `dbos` schema, and `@DBOS.transaction()` lets application SQL and step checkpoints commit atomically. First-party AI integrations cover Pydantic AI (`DBOSAgent`), OpenAI Agents SDK (`DBOSRunner`), Vercel AI SDK (`durableCalls` / `durableTools`), Google ADK, and LlamaIndex Workflows.

Before choosing DBOS solely because it is "MIT + Postgres," read two critical commercial boundaries verified in [DBOS's Enterprise Extensions docs](https://docs.dbos.dev/enterprise-extensions) and Conductor docs:
- **Waiting holds threads in pure MIT OSS.** Without proprietary `DBOS Enterprise Extensions`, `DBOS.sleep()` and `DBOS.recv()` keep waiting workflows resident in process memory, holding threads and queue slots until the wait finishes. True zero-resource suspension (`suspend=True`), S3 external storage, archiving, and horizontal sharding require a paid DBOS plan plus **DBOS Conductor**.
- **Automatic multi-node crash failover requires proprietary DBOS Conductor.** Single-node restarts recover automatically in OSS, but if one container dies in a multi-node fleet without Conductor (whose free dev license caps at one executor per app), you must invoke `DBOS.recover_workflows(...)` yourself.

Also check Postgres operational constraints: PgBouncer works only in **session mode** (not transaction mode), each process needs a minimum pool of five connections, and DBOS's own architecture docs cite roughly 1,000 steps per second per Postgres vCPU (up to ~20,000/sec on 16 vCPUs) before needing Enterprise sharding.

**Verdict:** the fastest on-ramp for Postgres teams that want durable agents inside an existing service with zero new servers on day one—just budget for Conductor and Enterprise Extensions if you need multi-node failover and thousands of days-long zero-memory approval waits.

### Inngest: event-driven serverless durability and offloaded LLM calls

[Inngest](https://www.inngest.com/docs/durable-execution/durable-agents) was designed for serverless web platforms (Vercel, AWS Lambda, Cloudflare Pages) alongside persistent outbound **Connect** workers. You wrap tool calls in `step.run()`, pause cleanly on `step.waitForEvent()` (with CEL matching) or `step.waitForSignal()` without consuming compute or concurrency slots, and use `step.ai.infer()` to **offload outbound LLM HTTP requests to Inngest's infrastructure** so your serverless function suspends while waiting on slow model tokens. In TypeScript SDK v4 (and Go v0.15+), client-side eager **Checkpointing** is enabled by default, cutting step-to-step round-trip latency on sequential agent loops.

Inngest also brings mature multi-tenant flow control (throttling, debouncing, priority, batching, concurrency keys), **AgentKit** (GA TypeScript multi-agent framework), and Realtime streaming. As of December 2026, **Durable Endpoints** and **Inngest Sandboxes** are in Beta, and **Inngest Agents** (threads, mid-run steering inboxes via `step.subscribe`, and agent teams) is in Labs early preview.

Three constraints deserve careful review. First, per [Inngest's SDK matrix](https://www.inngest.com/docs/sdks), **Python trails TypeScript significantly** as of December 2026—lacking Checkpointing, `step.waitForSignal`, `step.ai.wrap`, and Durable Endpoints. Second, hard limits cap every function run at **1,000 steps**, 4 MiB per step return, and 32 MiB total run state (long autonomous loops must fan out to child invocations), with total run duration including sleeps bounded by plan (30 to 366 days). Third, Inngest's server is licensed under **SSPL v1.0** (converting to Apache 2.0 after three years), and its single-node CLI self-hosting still carries a Beta label as of December 2026 (requiring external Postgres + Redis for production).

**Verdict:** the standout choice for TypeScript teams on Vercel or AWS Lambda who want event-driven flow control, zero-compute waits, and offloaded LLM inference calls within 1,000 steps per run.

### Trigger.dev: turnkey TypeScript agents and Cloud CRIU checkpoints

[Trigger.dev](https://trigger.dev/docs/ai-chat/overview) (v4; v3 is end-of-life) runs long-lived TypeScript/JavaScript tasks inside managed containers with no execution timeout (`timeout.None`). Rather than forcing replay-determinism rules across waits, **Trigger.dev Cloud** uses **CRIU (Checkpoint/Restore In Userspace)** to snapshot container memory and registers to disk during `wait.forToken()` (waitpoint tokens completable via SDK, webhook URL, or React `useWaitToken`), hosted webhook waiters (40+ verified providers), or `wait.for()` calls over 5 seconds—shutting down the machine and resuming on the exact same line with in-memory variables intact. For retry memoization across crashes, ordinary tasks isolate expensive steps into subtasks called with `triggerAndWait` plus an idempotency key, while **`chat.agent()`** gives full-stack teams durable multi-turn agent sessions backed by Vercel AI SDK, ElectricSQL Realtime streaming, OOM auto-upscaling, and native approval hooks.

Two primary-source caveats often catch evaluators off guard:
- **Self-hosting drops the headline Cloud features.** Per [Trigger.dev's own self-hosting overview](https://trigger.dev/docs/self-hosting/overview), although the repo is **Apache 2.0** (self-hostable via Docker Compose or Helm with Postgres, Redis, ClickHouse, and ElectricSQL), **CRIU Checkpoints (non-blocking waits), Warm starts, and Auto-scaling are Trigger.dev Cloud-only**.
- **TypeScript-only native SDK and compute billing nuances.** Trigger.dev has **no native Python SDK**—Python scripts run only as child subprocesses inside TypeScript tasks via `@trigger.dev/python`. On Cloud, waits over 5 seconds and waitpoint tokens stop billing (releasing concurrency slots after ~60 seconds), but active LLM API calls (`generateText`/`streamText`) **do** bill container compute, and `chat.agent()` holds a default 30-second billed idle window after each reply. There is also no offline `dev` mode.

**Verdict:** the fastest full-stack experience for TypeScript/Next.js teams deploying to Trigger.dev Cloud who want durable AI chat, Realtime streaming, and waitpoint approvals without replay-determinism boilerplate.

### Cloudflare Workflows: edge scale and millions of sleeping approvals

[Cloudflare Workflows](https://developers.cloudflare.com/workflows/reference/limits/) runs durable step execution directly on Cloudflare Workers V8 isolates and Durable Objects storage. Subclassing `WorkflowEntrypoint` and wrapping non-deterministic calls in `step.do(name, fn)` uses deterministic step names as cache keys, while `step.sleep()` and `step.waitForEvent()` pause instances for up to 365 days at **zero CPU cost** and **outside concurrency limits**—allowing millions of sleeping approval runs alongside up to **50,000 concurrent running instances** on Workers Paid. Because Workers bills active CPU time rather than network I/O wait, waiting on slow LLM responses does not burn CPU quota either.

Step limits grew dramatically by 2026: **10,000 steps default (configurable up to 25,000)** per Paid instance, 1 GB of persisted instance state, `ReadableStream<Uint8Array>` binary step returns (16 MB chunk cap), and deep integration with the MIT-licensed [Cloudflare Agents SDK](https://developers.cloudflare.com/agents/concepts/workflows/) (`AgentWorkflow` with `waitForApproval()`, `ThinkWorkflow` with `step.prompt()`, MCP, and Cloudflare Sandboxes). TypeScript/JavaScript is GA; the **Python Workflows SDK** is in Open Beta as of December 2026.

The constraints are structural. Cloudflare Workflows is a **proprietary managed platform with no self-hosted runtime** (local development emulates via `wrangler dev`), cannot deploy inside Workers for Platforms namespaces, inherits V8 isolate boundaries (10 MB script cap, ~128 MB memory, no native OS binaries inside the Workflow itself), caps non-stream step returns and event payloads at 1 MiB, and enforces strict step-naming determinism (no timestamps or random UUIDs in step names).

**Verdict:** unbeatable scale-to-zero economics and concurrency if you already build on Cloudflare Workers and Durable Objects and accept cloud lock-in.

### Hatchet: MIT Postgres queues plus durable task eviction

[Hatchet](https://docs.hatchet.run/v1/architecture-and-guarantees) pairs a PostgreSQL-backed distributed task queue (with optional RabbitMQ for high throughput) with deterministic **Durable Tasks** (`@hatchet.durable_task()`). Standard Hatchet tasks and DAGs enforce zero determinism rules and shine at multi-tenant fairness, concurrency group keys, and dynamic LLM provider rate limiting. When an agent needs crash-proof orchestration and multi-day waits, a Durable Task pushes every LLM and tool call into memoized child tasks, suspends with `waitForEvent` (supporting CEL filters and **lookback windows** so early webhooks never race) or `OrGroup` (event-or-timeout), and frees worker concurrency slots via configurable **`EvictionPolicy`**.

Hatchet's biggest differentiator for cautious infrastructure teams is **MIT licensing with full Cloud and self-hosted parity** across Python, TypeScript, Go, and Ruby—moving between Hatchet Cloud and self-hosted Docker/Kubernetes requires zero worker code changes, and **Embedded Mode** lets CI run with an embedded Postgres instance. It ships a first-party **Pydantic AI** durable backend, OpenAI Agents SDK and Claude Agent SDK cookbooks, MCP tool wrapping, and Durable Streams (November 2026). **Serverless Endpoints** (paid tenants) and **Hatchet Sandboxes** are in Labs Preview as of December 2026.

Hatchet's own docs are unusually candid about its envelope: Postgres-only engines sustain **hundreds of tasks per second per instance** (~25–50 ms dispatch latency, per Hatchet's architecture guide) and are not built for 10,000+ tasks/sec without RabbitMQ/sharding or sub-millisecond dispatch. Payloads over 1 MB degrade Postgres (4 MiB gRPC default), and worker cleanup code must explicitly distinguish `ErrTaskEvicted` (task paused to resume later) from `ErrTaskCancelled`.

**Verdict:** the cleanest MIT self-hostable choice when you want strong per-tenant LLM rate limiting, Postgres simplicity, and durable task eviction without proprietary feature gating.

## How to choose

- **Polyglot enterprise team needing the widest GA AI framework support and MIT self-hosting:** Temporal.
- **Stateful per-session agents, FaaS suspension, and zero external database:** Restate (raise the 1-minute inactivity timeout before calling slow reasoning models).
- **Zero extra servers on day one in an existing Postgres app:** DBOS—plan for Conductor and Enterprise Extensions once you need multi-node failover or zero-memory suspended waits.
- **TypeScript serverless apps on Vercel or Lambda needing `step.ai.infer()` offloading and event flow control:** Inngest.
- **TypeScript/Next.js full-stack chat and background agents on managed cloud with zero replay rules on waits:** Trigger.dev Cloud (do not self-host if you rely on CRIU checkpoints).
- **Already on Cloudflare Workers / Durable Objects with high-fan-out sleeping approvals:** Cloudflare Workflows.
- **MIT-licensed Postgres task queue with strict per-tenant rate limiting and Cloud/self-hosted parity:** Hatchet.

Pair whichever runtime you choose with clear approval-gate policies in [human-in-the-loop AI workflows](/guides/workflow/human-in-the-loop-ai-workflows) and safe code isolation in [sandboxing AI-generated code](/guides/advanced/sandboxing-ai-generated-code).

## Frequently asked questions

### Why do production AI agents need a durable execution engine instead of a standard job queue?

Standard job queues only retry whole jobs from the start. If a multi-step agent crashes after six LLM calls and three tool mutations, a plain queue re-runs everything from step one—burning tokens twice and risking duplicate API writes. A durable execution engine checkpoints each model call, tool step, and approval wait so the run resumes from the exact point of failure.

### Which durable execution engines pause for human approval without consuming compute?

Temporal (evicted from worker sticky cache), Restate (FaaS/handler suspension), Inngest (waits suspend compute and skip concurrency limits), Cloudflare Workflows (millions of zero-CPU waiting instances), Trigger.dev Cloud (CRIU snapshots on waits over 5 seconds and waitpoint tokens), and Hatchet (durable task eviction freeing worker slots) all avoid holding active run compute during waits. Watch two self-hosted caveats: Trigger.dev CRIU checkpoints are Cloud-only, and DBOS requires proprietary Enterprise Extensions (suspend=True) plus Conductor for zero-memory suspension.

### Which durable execution engine is simplest to adopt if you already run PostgreSQL?

DBOS requires zero external orchestration servers on day one—you install the MIT library into your Python, TypeScript, Go, or Java service and point it at Postgres—though multi-node automatic crash recovery requires proprietary DBOS Conductor and zero-memory waits require Enterprise Extensions. If you want full MIT Cloud/self-hosted parity on Postgres with queue fairness and durable task eviction, choose Hatchet.

### Should I pick Temporal or Restate for AI agents?

Pick Temporal when you need MIT self-hosting, eight official language SDKs, cross-team Nexus gateways, and the broadest set of GA agent framework plugins (LangGraph, OpenAI Agents SDK, Pydantic AI, Vercel AI SDK, Google ADK). Pick Restate when you want a single Rust binary with no external database, built-in keyed Virtual Objects for per-session agent state, first-class Lambda/Cloud Run/Workers suspension, or the TypeScript Restate Harness—and Restate's BSL 1.1 server license fits your business.

### Can I use Trigger.dev or Inngest with Python AI agents?

Inngest has an official Python SDK, but as of December 2026 it trails TypeScript: Python lacks eager Checkpointing, step.waitForSignal, step.ai.wrap, and Durable Endpoints. Trigger.dev has no native Python SDK at all—Python code runs only as subprocesses inside TypeScript tasks via @trigger.dev/python. Python-first AI agent teams generally get better ergonomics from Temporal, Restate, DBOS, or Hatchet.

## Sources and further reading

- [Temporal AI documentation](https://docs.temporal.io/ai) — Temporal
- [Temporal Workflow execution limits](https://docs.temporal.io/workflow-execution/limits) — Temporal
- [Restate AI and Harness documentation](https://docs.restate.dev/ai) — Restate
- [Restate architecture reference](https://docs.restate.dev/references/architecture) — Restate
- [DBOS architecture](https://docs.dbos.dev/architecture) — DBOS
- [DBOS Enterprise Extensions](https://docs.dbos.dev/enterprise-extensions) — DBOS
- [Inngest Durable Agents](https://www.inngest.com/docs/durable-execution/durable-agents) — Inngest
- [Inngest SDK feature matrix](https://www.inngest.com/docs/sdks) — Inngest
- [Trigger.dev AI Chat and Agents overview](https://trigger.dev/docs/ai-chat/overview) — Trigger.dev
- [Trigger.dev self-hosting overview](https://trigger.dev/docs/self-hosting/overview) — Trigger.dev
- [Cloudflare Workflows limits and API](https://developers.cloudflare.com/workflows/reference/limits/) — Cloudflare
- [Cloudflare Agents and Workflows](https://developers.cloudflare.com/agents/concepts/workflows/) — Cloudflare
- [Hatchet architecture and guarantees](https://docs.hatchet.run/v1/architecture-and-guarantees) — Hatchet
- [Pydantic AI durable execution overview](https://pydantic.dev/docs/ai/capabilities/durable_execution/overview/) — Pydantic

---

_Source: https://agentscamp.com/guides/comparisons/best-durable-execution-engines-for-ai-agents-2026 — Guide on AgentsCamp._
