What is Temporal? Durable execution, how it works, when to use it, the alternatives and who runs it
Short answer
Temporal is an open-source (MIT) durable execution platform. You write a business process as ordinary code, called a Workflow; every step is recorded in an Event History, so if a worker crashes the process resumes where it stopped instead of restarting. Side effects such as API calls live in Activities, which Temporal retries automatically. It suits long-running, multi-step processes where a half-finished run is expensive: payments, onboarding, infrastructure provisioning, migrations and AI agents. It is a poor fit for simple request/response code, fire-and-forget cron jobs, or pipelines where you mainly want a data-asset catalogue and backfills. The main alternatives are cloud-native engines (AWS Step Functions, Lambda durable functions, Azure Durable Functions), other durable execution engines (Cadence, Restate, Inngest, Hatchet, DBOS), data orchestrators (Airflow, Prefect, Dagster) and BPMN or low-code engines (Camunda, Conductor). Every company named below links to a Temporal case study, a published talk or a company page. For cost, see our Temporal Cloud pricing guide; for implementation and hiring, see how to hire a Temporal developer.
Contents
- What Temporal is
- How Temporal works: workflows, activities, workers and replay
- Determinism, history limits and long-running workflows
- When to use Temporal
- When not to use Temporal
- Temporal alternatives, verified one by one
- How to choose between them
- Companies using Temporal, with sources
- Run it yourself or use Temporal Cloud
What Temporal is
Temporal is a platform for durable execution: code that keeps running correctly through crashes, deploys, timeouts and outages because its progress is persisted. Temporal describes itself as a durable execution platform that lets developers build reliable, long-running applications as code (temporal.io). You write the process in a general-purpose language. The platform records what happened and re-runs your code to rebuild state when needed.
Temporal Technologies was founded in October 2019 by Maxim Fateev and Samar Abbas, who had built the Cadence workflow engine at Uber; Temporal began as a fork of Cadence. Fateev describes this in a 2020 interview (Contributor interview), and the founding is covered in Amplify Partners' investment note. Cadence is still developed separately and appears in the alternatives below.
There are two ways to run it, and the code is the same either way:
- Self-hosted. The Temporal Server is MIT-licensed on GitHub. You run the services, a persistence database and a visibility store.
- Temporal Cloud. Temporal runs the service and bills for Actions, Storage and a plan. Your workers still run on your own infrastructure. Prices are in our pricing guide.
Official SDKs cover Go, Java, Python, TypeScript, .NET, Ruby and PHP on the pricing page; the documentation also lists a Rust SDK.
How Temporal works: workflows, activities, workers and replay
Five concepts explain almost everything. Definitions are from the Temporal documentation (Workflow Definition, Activities, Workers, Temporal Server, Event History).
| Concept | What it is | Where it runs | The rule that matters |
|---|---|---|---|
| Workflow | The code that defines the whole process, written with an SDK as a function or method. | Your workers | Must be deterministic so it can be replayed. |
| Activity | One well-defined action: call another service, send an email, transcode a file. | Your workers | Can do anything, including non-deterministic work. Temporal recommends making it idempotent because it is retried automatically under a Retry Policy. |
| Worker | A process you run that polls a Task Queue and executes Workflow and Activity code. | Your infrastructure, whether you use Cloud or self-host | Scale by adding workers. Temporal Cloud does not run them for you. |
| Temporal Service | The server side: Frontend, History, Matching and Worker services, backed by a persistence store. | Temporal Cloud or your infrastructure | It stores state and dispatches tasks; it does not run your code. |
| Event History | An append-only log of every event in one Workflow Execution: inputs, activity results, timers, messages. | Temporal Service | It is the source of truth. Replay rebuilds a workflow from it. |
One run, step by step
- A client asks the Temporal Service to start a Workflow. The Frontend service validates and routes the request; the History service records a start event.
- A task is placed on a Task Queue, which the Matching service hosts. One of your workers polls that queue and receives the task with the history so far.
- The worker runs your Workflow code. When the code calls an SDK method such as "execute activity", the SDK emits a Command (for example, ScheduleActivityTask).
- The service records the command as events and puts an Activity task on a queue. A worker runs the Activity, which can call databases and APIs. If it fails, the Retry Policy retries it.
- The result is written to the Event History and the workflow resumes. Timers, signals and child workflows follow the same cycle.
- If a worker dies mid-run, another worker picks up the task, replays the Workflow code against the Event History to rebuild its state, skips work already recorded, and continues.
The documentation explains that during replay the SDK compares the commands your code emits with the events already in history; a match means the run progresses, and a mismatch raises a non-determinism error. Replay happens on the worker and does not create new server-side operations, which is why Temporal Cloud does not bill it.
What a workflow looks like
An illustrative Python sketch (not production code) showing the shape: the workflow orchestrates, the activities do the side effects.
from datetime import timedelta
from temporalio import workflow
@workflow.defn
class OrderWorkflow:
@workflow.run
async def run(self, order_id: str) -> str:
await workflow.execute_activity(
"charge_card", order_id,
start_to_close_timeout=timedelta(seconds=30))
await workflow.execute_activity(
"reserve_stock", order_id,
start_to_close_timeout=timedelta(seconds=30))
await workflow.sleep(timedelta(days=2)) # durable timer
await workflow.execute_activity(
"send_review_request", order_id,
start_to_close_timeout=timedelta(seconds=30))
return "done"The two-day sleep survives worker restarts and deploys because it is a durable timer recorded in history, not an in-memory wait.
Determinism, history limits and long-running workflows
Determinism. Workflow code must make the same sequence of SDK calls given the same input. Per the documentation, anything non-deterministic, such as API calls, LLM calls, database queries or other external interactions, belongs in Activities. Inline branching on local time or a random number is not allowed; each SDK offers replay-safe APIs for time, randomness and logging.
Changing Workflow code that has already started runs is where teams get hurt. These calls produce Commands and must not be reordered, added or removed in running workflows without versioning: starting or cancelling a timer, scheduling an activity (including local activities), starting a child workflow, signalling an external workflow, and ending the workflow. Temporal offers two strategies: Worker Versioning, which the documentation recommends as the default where you can run versioned worker deployments, and patching.
History limits. The service logs a warning after 10,240 events and terminates a Workflow Execution whose history exceeds 51,200 events, 2,000 Updates or 10,000 Signals (Event History limits). The answer for workflows that run forever or loop is Continue-As-New, which closes the run and starts a fresh one. There is no time limit on how long a workflow can run.
Visibility. Search Attributes let you list and filter executions by your own identifiers, such as an order ID, from the Web UI or CLI (observability docs).
When to use Temporal
Temporal earns its keep when a process has several steps, touches unreliable systems, waits for time or people, and costs money or trust if it half-finishes. The patterns below come from published customer stories and talks; each link is the source.
- Payments, billing and money movement. Mews orchestrates payments, refunds, chargebacks and KYC onboarding (case study); ShareChat runs subscription billing (case study); Mollie runs long-lived verification processes (case study); Turo has presented deferred payments (talk).
- Infrastructure and platform automation. Netflix replaced a homegrown workflow system for infrastructure management (case study); HashiCorp has presented using Temporal for platform work (talk); Trendyol provisions databases across regions (case study); Duolingo runs a self-service infrastructure portal on Temporal Nexus (case study).
- Large migrations. Nordstrom used workflows to coordinate its move from self-managed Kafka to Confluent Cloud across many teams (talk).
- AI agents and long-running AI jobs. Replit orchestrates the Replit Agent control plane (case study); Retool built its Workflows and Agents products on it (case study); Emergent runs agent builds (case study).
- Replacing cron, queues and hand-built state machines. Instacart described a stack of Airflow, cron jobs and long-running RPCs that stopped fitting complex multi-step processes (case study).
- Scheduled fan-out with retries. Cloudflare coordinates production readiness checks across thousands of repositories using Temporal and Schedules (talk).
Common thread: the process outlives any single server, and the business needs it to finish or compensate, not silently stop.
When not to use Temporal
- Synchronous request/response work. If a function runs in milliseconds, has no intermediate state worth keeping and can simply be retried by the caller, a workflow adds machinery you do not need.
- Recurring jobs where a missed run is harmless. A platform scheduler or cron is simpler. Temporal does have Schedules, but each scheduled run is a workflow with its own Action and storage cost on Temporal Cloud.
- Pipelines where you mainly want data-asset tooling. Airflow, Prefect and Dagster are built around scheduling, monitoring and data assets for pipelines. Temporal can orchestrate pipelines (Cogent's case study covers it: source), but check whether you would be rebuilding tooling those products ship.
- Processes modelled by business analysts in BPMN. Camunda's documentation lists BPMN, DMN and FEEL. Temporal workflows are code, so changes go through developers and deployments.
- Very many tiny steps on Temporal Cloud. Each activity start is a billable Action. High-volume, low-value steps can make the bill the main constraint; see Temporal Cloud pricing.
- Teams that cannot take on determinism and versioning. Long-lived workflows span deployments. Without a versioning discipline, a code change can break running executions.
- Unbounded loops and large payloads. Histories have hard limits, and inputs and outputs are recorded in them. Design with Continue-As-New and pass references to large data.
Temporal alternatives, verified one by one
Each row was checked against the vendor's own site, documentation or repository on 2 December 2026. Licences are read from the repository licence files. We do not compare prices here because most of these products publish different pricing models; the Temporal Cloud list prices are in our pricing guide. If you also run plain queues, our RabbitMQ vs Kafka guide covers the broker side.
| Option | What it is (per its own sources) | Hosting and licence | Reach for it when | Trade-off versus Temporal | Sources |
|---|---|---|---|---|---|
| AWS Step Functions | State-machine workflows that call AWS services. Standard workflows run up to one year; Express workflows run up to five minutes (AWS docs). | Managed by AWS | You live on AWS and want low operational load, with flows that map well to calling AWS services. | Workflow logic is a state-machine definition, not general-purpose code with tests and refactors in your language. | AWS docs, types |
| AWS Lambda durable functions | Lambda extended with durable execution: checkpoints, replay and waits, with executions up to one year. | Managed by AWS (Lambda) | Your code is already Lambda-based and you want durable multi-step logic without another platform. | Tied to Lambda and AWS; a newer model than the others here. | AWS docs |
| Azure Durable Functions | Extension of Azure Functions for stateful workflows; Microsoft lists .NET, JavaScript, TypeScript, Python, PowerShell and Java. | Managed on Azure | Your estate is Azure and Functions. | Tied to Azure Functions. Microsoft recommends the Durable Task Scheduler as the backend. | Microsoft Learn |
| Cadence | Open-source durable execution engine for Go, Java and Python; the project Temporal forked from. Its site names Uber, DoorDash and NetApp as users and publishes a guide for migrating from Temporal. | Self-hostable (Apache-2.0); its site says it is a CNCF project | You want the original open-source engine with open governance and are comfortable self-hosting. | Its site describes a self-hostable engine; confirm whether you need a managed offering and who would provide it. | cadenceworkflow.io, GitHub |
| Restate | Application runtime with durable execution, keyed state, queues, RPC and timers in one binary. | Self-hosted; source-available under Business Source License 1.1, which restricts offering a public Restate platform service | You want a lightweight single-binary runtime with a different programming model. | Licence is not OSI open source; read the Additional Use Grant. | restate.dev, licence |
| Inngest | Event-driven durable functions and step functions. Its functions run on your infrastructure and are invoked over HTTPS by the Inngest platform or a self-hosted server. | Hosted platform or self-hosted; SSPL 1.0 with an Apache 2.0 future licence | Event-driven, serverless-style apps and AI workflows. | SSPL is not OSI open source. | inngest.com, GitHub |
| Hatchet | Orchestration engine for background tasks, AI agents and durable workflows, with TypeScript, Python and Go SDKs. | Self-hosted or hosted; MIT | Task-queue-style workloads with workflow features. | Assess maturity, scale references and operating model for your use case. | hatchet.run, GitHub |
| DBOS | Open-source durable execution library that runs on Postgres without a separate orchestrator. | Library in your app on Postgres; MIT | You want durability inside your application using the database you already run. | A library model rather than a separate orchestration service. | dbos.dev, GitHub |
| Apache Airflow | Platform to programmatically author, schedule and monitor workflows. | Self-hosted or via managed vendors; Apache-2.0 | Scheduled data pipelines. | Built around scheduled DAGs, not long-lived application workflows that wait on signals. | airflow.apache.org |
| Prefect | Workflow orchestration for data pipelines and AI agents. | Self-hosted or hosted; Apache-2.0 | Python data and AI pipelines. | Data-orchestration focus. | prefect.io, GitHub |
| Dagster | Data orchestrator for building, scheduling and monitoring data pipelines. | Self-hosted or hosted; Apache-2.0 | Asset-centric data engineering. | Data-orchestration focus. | dagster.io, GitHub |
| Camunda (Zeebe) | Zeebe is the process automation engine behind Camunda 8; documentation covers BPMN, DMN and FEEL. | Camunda License 1.0 for most of the code, with some parts under Apache 2.0 | Business-process modelling that analysts and engineers share. | Visual-model-first; not the code-first model. | Camunda docs, licence notes |
| Conductor / Orkes | Conductor is an event-driven workflow engine. Netflix stopped maintaining its GitHub repo from 13 December 2023; the community fork conductor-oss is Apache-2.0, and Orkes sells a platform built on Conductor OSS. | Self-hosted (Apache-2.0) or Orkes Cloud | JSON-defined workflows and microservice orchestration. | Check which fork you adopt; the original repo is no longer maintained by Netflix. | Netflix repo notice, conductor-oss, orkes.io |
How to choose between them
| If this describes you | Look first at |
|---|---|
| Everything runs on AWS and the flow is mostly calling AWS services | Step Functions, then Lambda durable functions |
| Everything runs on Azure Functions | Azure Durable Functions |
| You want durable execution in application code, with a large published user base and a managed option | Temporal |
| You want durable execution without running a separate cluster and already run Postgres | DBOS |
| Mostly background jobs and AI agent tasks with workflow features | Hatchet or Inngest |
| Scheduled data pipelines and assets | Airflow, Prefect or Dagster |
| Processes modelled visually in BPMN and shared with analysts | Camunda |
Run a two-week proof of concept on one real workflow, not a hello-world. Measure failure handling, how a code change to a running workflow is handled, local testing, and what operating the platform costs your team.
Companies using Temporal, with sources
We name a company only where Temporal or the company itself has published a case study, talk or page. Temporal's customer page also shows a wall of logos for many more companies; a logo is not a described use case, so we left those out. Figures marked "company-reported" are as stated by the source and we have not independently checked them.
| Company | What the source says they use it for | Source type | Link |
|---|---|---|---|
| Mews | Payments, refunds, chargebacks and KYC onboarding on Temporal Cloud | Temporal case study | Read source |
| ShareChat | Subscription billing engine; the case study cites 50 million transactions a month and a success rate of 99.9%+ (company-reported) | Temporal case study | Read source |
| Mollie | Long-lived processes such as customer verification remediation | Temporal case study | Read source |
| Vinted | Payment flows, such as paying sellers once buyers confirm an item; the case study cites 10 to 12 million workflows a day (company-reported) | Temporal case study | Read source |
| Turo | Deferred payments and vehicle data imports | Replay 2024 talk | Read source |
| Netflix | Infrastructure management, replacing a homegrown orchestration system | Temporal case study | Read source |
| HashiCorp | Managing Nomad clusters behind Terraform Cloud; platform workflows | Replay 2023 talk | Read source |
| Cloudflare | Production readiness checks at scale using Schedules | Replay 2024 talk | Read source |
| Nordstrom | Orchestrating a Kafka to Confluent Cloud migration | Replay 2024 talk | Read source |
| Duolingo | Self-service infrastructure with Temporal Nexus | Temporal case study | Read source |
| Trendyol | Long-running multi-region database provisioning | Temporal case study | Read source |
| Instacart | Complex multi-step workflows replacing Airflow, cron and long-running RPCs | Temporal case study | Read source |
| Vodafone | Installing software across customer premises equipment | Temporal case study | Read source |
| Replit | Replit Agent control plane | Temporal case study | Read source |
| Retool | Workflows and Agents products | Temporal case study | Read source |
| VEED.IO | Video workflows; the case study cites 4 million daily video workflows (company-reported) | Temporal case study | Read source |
| FireHydrant | Durable alerting and escalation in its Signals product | Temporal case study | Read source |
| Attentive | Moved from self-hosted Temporal to Temporal Cloud; Temporal's description cites $30,000 a month in savings (vendor-published) | Temporal case study | Read source |
Run it yourself or use Temporal Cloud
The decision is operational and financial, not technical, because the SDKs and workflow code are the same. The Temporal documentation notes that a small self-hosted setup can be one server process with one PostgreSQL database, while high-throughput production deployments are recommended to run each service independently (Temporal Server, self-hosted guide). We cover the cost side, with a worked example, in the Temporal Cloud pricing guide.
If you are weighing a build, a migration from cron and queues, or hiring for it, read how to hire a Temporal developer, expert or consultant for our implementation approach, skills to look for and interview questions.
Want a second opinion on whether Temporal fits?
Send us the process you are thinking of automating. We will map it to workflows and activities, flag where Temporal is the wrong tool, and give you a view on Cloud versus self-hosted before you commit.
Book a free 30-minute call Contact usFrequently asked questions
What is Temporal used for?
Temporal runs long-running, multi-step business processes reliably. Published examples include payments and billing (Mews, ShareChat, Mollie), infrastructure automation (Netflix, HashiCorp, Duolingo, Trendyol), migrations (Nordstrom) and AI agents (Replit, Retool, Emergent).
Is Temporal open source?
Yes. The Temporal Server is MIT-licensed on GitHub, and the SDKs are open source. You can self-host it at no licence cost, or use Temporal Cloud, which is a paid managed service.
What is durable execution?
Durable execution means a program's progress is persisted so it can resume after a crash instead of restarting. In Temporal, each step is recorded in an Event History and the workflow code is replayed against it to rebuild state.
What is the difference between a Workflow and an Activity in Temporal?
A Workflow is deterministic code that defines the process and is replayed. An Activity is a single action, such as calling an API or sending an email, that can be non-deterministic and is retried automatically under a Retry Policy.
Does Temporal run my code?
Your own workers run your Workflow and Activity code on your infrastructure. The Temporal Service, which is self-hosted or Temporal Cloud, stores state and dispatches tasks.
What are the main alternatives to Temporal?
Cloud-native options are AWS Step Functions, AWS Lambda durable functions and Azure Durable Functions. Other durable execution engines are Cadence, Restate, Inngest, Hatchet and DBOS. For data pipelines there are Airflow, Prefect and Dagster, and for BPMN there is Camunda. Conductor and Orkes cover JSON-defined workflows.
Is Temporal the same as Cadence?
No, but they are related. Temporal began as a fork of Cadence, which its founders created at Uber. Both are maintained separately today.
How much does Temporal cost?
Self-hosted Temporal has no licence fee, but you pay for infrastructure and people. Temporal Cloud is billed on Actions, Storage and a plan, in USD; GBP is not published. See our Temporal Cloud pricing guide for the full rates.
When should I not use Temporal?
Skip it for simple synchronous calls, cron jobs where a missed run does not matter, and teams that cannot take on determinism and workflow versioning. Be careful with very high volumes of tiny steps on Temporal Cloud, where each activity start is a billable Action.