Kestra vs. Temporal : Durable execution inside application code vs. declarative workflows for data, infrastructure and business processes.

Temporal runs workflows written with its SDKs in Go, Java, Python, TypeScript and more, and replays their event history to survive failures. Kestra is a declarative orchestration platform that runs YAML workflows calling scripts, APIs and infrastructure tools as tasks.

Temporal or Kestra?

Temporal is the better fit if

  • Your workflows live inside an application, such as an order or payment process that has to survive a crash halfway through a function.
  • Your developers want workflow logic in the same language and repository as the service it belongs to.
  • You want Temporal Cloud to run the service while your own workers run the code.

Choose Kestra if

  • Your workflows coordinate tools and teams, such as data pipelines, infrastructure provisioning, approvals and scheduled jobs.
  • Platform, data and ops teams need to read and change workflows without learning an SDK and its determinism rules.
  • You want schedules, webhooks, retries and approvals declared in the same file as the workflow.

How do Temporal and Kestra compare, feature by feature?

Workflow definition Workflow and activity code written with a Temporal SDK Declarative YAML, checked against plugin schemas when saved
Languages SDKs for Go, Java, Python, TypeScript, .NET, PHP and Ruby Python, Node.js, Go, Shell, .NET, Ruby and more as script tasks, with no SDK required
Code rules Workflow code must be deterministic, with I/O moved into activities No determinism rules for task code
Recovery Event history replay restores workflow state after a worker crash Task run state is stored in the database, and executions replay from any task
Retries Activities retry without limit by default, with exponential backoff Set per task or per flow: constant, exponential or random delays
Who runs the code Worker processes you build, deploy and scale Kestra workers, which load plugins and run tasks
Triggers Schedules managed through the CLI, SDK or UI, and signals from other code Schedules, webhooks, flow triggers, polling and realtime triggers in the flow file
Integrations Activities you write with your own client libraries 2,900+ plugins, versioned apart from the core
Hosting Self-hosted on Cassandra, MySQL or PostgreSQL, or Temporal Cloud Self-hosted, air-gapped (Kestra Enterprise), or Kestra Cloud
License MIT Apache 2.0

Which teams run integration and infrastructure workflows on Kestra?

E-commerce

~600 workflows in production, after Víssimo compared Kestra with n8n, Temporal, Prefect and Airflow.

With Kestra, orchestration stopped being a fragile point in the architecture and became a stable foundation for the business.

Rafael Bartalotti, Engineering and Architecture Manager

Read the story

Telecom

Days → hours environment delivery time, with each environment provisioned, deployed and validated on request.

From a technical point of view, Kestra sits at the first place.

Alex Lernerman, DevOps Engineer, Amdocs

Read the story

How are Temporal and Kestra built?

Temporal keeps workflow state in an event history and replays your code against it. Kestra stores the state of each task run and picks the next task from it.

  • Temporal: durable execution in code

    A workflow is a function written with a Temporal SDK. The Temporal Service records each step in an event history, and workers replay that history to rebuild state after a failure.

    • Workers you run poll task queues for workflow and activity tasks
    • Workflow code must make the same calls in the same order on replay
    • Activities hold the side effects, such as API calls and database writes
    • The Frontend, History and Matching services sit on Cassandra, MySQL or PostgreSQL
  • Kestra: declarative orchestration

    A flow is YAML that lists tasks, triggers and error handlers. The executor stores each task run's state in the backend and dispatches the next task to a worker.

    • Flow definitions are data, checked against plugin schemas
    • Each task's outputs are stored and passed to later tasks by expression
    • A Pause task holds an execution until someone resumes it
    • The default backend is a relational database such as Postgres

What does the same process look like in each?

The same process in both: create an environment through an API, wait for an approval, then deploy it, with three attempts and a timeout on each call.

Get started with Kestra
Temporal workflow (Python SDK) provision.py
1from datetime import timedelta23import httpx4from temporalio import activity, workflow5from temporalio.common import RetryPolicy67API = "https://infra.example.com/api/environments"8RETRY = RetryPolicy(maximum_attempts=3)910@activity.defn11async def create_environment(name: str) -> str:12    async with httpx.AsyncClient() as client:13        r = await client.post(API, json={"name": name})14        r.raise_for_status()15        return r.json()["id"]1617@activity.defn18async def deploy(env_id: str) -> None:19    async with httpx.AsyncClient() as client:20        r = await client.post(f"{API}/{env_id}/deploy")21        r.raise_for_status()2223@workflow.defn24class ProvisionEnvironment:25    def __init__(self) -> None:26        self.approved = False2728    @workflow.signal29    def approve(self) -> None:30        self.approved = True3132    @workflow.run33    async def run(self, name: str) -> None:34        env_id = await workflow.execute_activity(35            create_environment, name,36            start_to_close_timeout=timedelta(minutes=5), retry_policy=RETRY,37        )38        await workflow.wait_condition(lambda: self.approved)39        await workflow.execute_activity(40            deploy, env_id,41            start_to_close_timeout=timedelta(minutes=30), retry_policy=RETRY,42        )
/ Flows / provision_environment
1id: provision_environment2namespace: platform.environments34inputs:5  - id: name6    type: STRING78tasks:9  - id: create_environment10    type: io.kestra.plugin.core.http.Request11    method: POST12    uri: https://infra.example.com/api/environments13    contentType: application/json14    body: '{"name": "{{ inputs.name }}"}'15    timeout: PT5M16    retry:17      type: constant18      interval: PT10S19      maxAttempts: 32021  - id: approval22    type: io.kestra.plugin.core.flow.Pause2324  - id: deploy25    type: io.kestra.plugin.core.http.Request26    method: POST27    uri: "https://infra.example.com/api/environments/{{ fromJson(outputs.create_environment.body).id }}/deploy"28    timeout: PT30M29    retry:30      type: constant31      interval: PT10S32      maxAttempts: 3

What does it take to get Temporal and Kestra running?

Both start locally with a couple of commands. Production is where they differ.

Temporal Dev server
$brew install temporal$temporal server start-dev

Temporal's CLI docs start a local development server with one command, with the Web UI on localhost:8233, and say it isn't meant for production. A production Temporal Service needs Cassandra, MySQL or PostgreSQL, a visibility store, and the worker processes that run your code.

Kestra Database included
$curl -o docker-compose.yml https://raw.githubusercontent.com/kestra-io/kestra/develop/docker-compose.yml$docker compose up

One Compose file starts Kestra and its Postgres database. Open localhost:8080, pick a blueprint and run it. Production runs the same image on Kubernetes with the Kestra Helm chart.

How hard is it to move from Temporal to Kestra?

Leaving Temporal

Workflow code is written against the SDK, with activities, signals, timers and the determinism rules that make replay work. Activity bodies are ordinary functions that call APIs, so they move with little change. The orchestration around them has to be redrawn as tasks.

Moving to Kestra

Each activity becomes a script or HTTP task, each signal wait a Pause task, each timer a pause duration, and each Temporal schedule a trigger. Application workflows that depend on replay can stay on Temporal and be started from a Kestra flow.

How do Temporal and Kestra compare on licensing, pricing and self-hosting?

Both are open source and free to self-host, under MIT and Apache 2.0.

Temporal

MIT licensed and free to self-host, which means running the Temporal Service, its database and your workers. Temporal Cloud is billed per Action plus storage, and plans are quoted on request.

Kestra

Apache 2.0 and free to self-host, with no limits on flows or executions. Kestra Cloud is billed on usage, and Kestra Enterprise is licensed per instance. Both are on the pricing page.

Three ways to run Kestra

Try it alone, try it managed, or talk to an expert who has done the migration before.

Kestra Core

Open Source

Where most teams start, and where many experiment with a first production. Self-hosted and free, with no limits on flows or executions.

Get started

Kestra Cloud

Early Access

Managed by the people who build Kestra. No platform to run, pay for what you use.

Try Kestra Cloud
Find the edition that fits your team

Questions from Temporal teams

SOC 2 GDPR

SOC 2 Type 2 and GDPR, independently audited. The report is available on request.

Security overview