PROVIDER - Durable Execution
Temporal
Temporal is a durable execution platform that keeps each step of a long-running process in an event history, so work resumes after crashes or deploys; the server is MIT-licensed and Temporal Cloud bills for actions, storage and support.
4.5pts
Service Overview
Temporal is a durable execution platform for long-running processes. Developers write business steps as ordinary functions, while the runtime records every step in an event history so work resumes from the last completed point after a crash, deploy or host failure, without a hand-written state machine or compensation layer. It targets order fulfilment, payment settlement, device provisioning and long AI jobs that span minutes to months and need retries plus human approval.
The server core is MIT-licensed and can be self-hosted. The managed offering, Temporal Cloud, bills three things: actions (compute), storage and support level. New accounts receive $150 in credits that expire after 90 days. Client SDKs cover Go, Java, TypeScript, Python, .NET, PHP and Ruby, and Cloud and self-hosted deployments share the same programming model.
Key Strengths
- Every step lands in an event history, so a process resumes from the breakpoint after a crash or deploy.
- Timers, signals, queries and updates give long flows a way to wait, wake, inspect and change input mid-run.
- SDKs span Go, Java, TypeScript, Python, .NET, PHP and Ruby, so teams keep their existing language stack.
- The server is MIT-licensed with no per-action fee when self-hosted, only the databases and compute you run.
- Actions count real server interactions, and workflow replay generates none, so recovery adds no billing.
Limitations
- Timers and signals each produce actions, so polling-style designs inflate the bill and action volume needs planning.
- Self-hosting means operating Cassandra or PostgreSQL plus Elasticsearch and a multi-node server cluster.
- The Business plan charges the greater of $500 per month or 10% of consumption, a visible floor for small teams.
- A single workflow history has an event limit, so very long flows must be segmented with Continue-As-New.
- Visibility queries depend on Elasticsearch or the built-in Cloud feature, and retention needs separate care.
Product Ecosystem
Temporal splits responsibility in two: workflows decide the order of steps, activities perform every external call. The server keeps an event history rather than a memory snapshot, so a worker can restart at any time and rebuild state.
Workflows and activities
A workflow must be deterministic: the same inputs and history must produce the same outcome, so clocks, randomness and external calls are injected through activities or framework helpers. Activities are plain functions whose retries, backoff and timeouts are declared at the call site.
Task queues, workers and namespaces
Task queues decouple workers from the server; several workers polling the same queue scale horizontally. A namespace is the isolation unit for environments or tenants, with actions and storage metered per namespace. In multi-region deployments both namespaces and data are bound to a specific region.
Signals, queries and updates
A signal pushes an event into a running workflow, fitting cancellations and approval callbacks. A query reads state without changing it, and an update writes while returning a result, which suits human-in-the-loop steps that need confirmation. All three generate actions, so plan by call frequency.
Nexus and cross-namespace calls
Nexus wraps calls between namespaces in a service contract so callers do not depend on the callee implementation, and cross-namespace calls are billed as actions. It fits extracting shared capabilities such as account checks out of individual business flows.
Observability and operations
The Temporal CLI lists workflows, shows histories and restarts work, while the Web UI renders each event and retry. Cloud includes visibility queries and audit logging; self-hosted deployments need Elasticsearch for attribute-based search. Queue backlog and worker heartbeat gaps are the usual places to start troubleshooting, and the callback patterns in webhook signature verification apply to server-side triggers.
Use Cases
- Good fit|Order and payment flows: multi-day callbacks, retries and manual review fit one workflow.
- Good fit|Device provisioning and orchestration: failed steps resume without replaying the whole chain.
- Good fit|Long AI jobs and batch work: inference, approval and persistence split into recorded steps.
- Good fit|Teams already on Go, Java or TypeScript: existing languages and test tools carry over.
- Evaluate|Plain scheduled scripts: a cron or a simple scheduler is lighter when nothing needs to resume.
- Evaluate|Extremely high action volume: dense signals and timers raise Cloud cost noticeably.
- Evaluate|Small teams without database operations: self-hosting requires several storage components.
Pricing & Billing Selection
Billing runs on three lines: actions, storage and support, with actions dominating. Replay inside a namespace creates no new actions, so pushing recomputation to workers is the main lever for cost.
| Plan | Reference price | Included quota | Key capabilities |
|---|---|---|---|
| Temporal Cloud pay-as-you-go | from $0/month, billed on actions and storage actually used | on-demand capacity starts at 500 actions per second and scales on 7-day usage; actions step from $50 per million downward by monthly volume | 99.9% SLA, multi-cloud and multi-region, user roles and service accounts, API keys, audit logging, SAML SSO |
| Business | greater of $500/month or 10% of consumption | 2.5M actions, 2.5 GB active storage and 100 GB retained storage per month, overage at tier rates | SAML SSO included, SCIM as a $500/month add-on, provisioned capacity, 1-3 year commitment discounts, 2-hour P0 response |
| Enterprise | annual contract | 10M actions, 10 GB active storage and 400 GB retained storage per month | SCIM included, 24/7 support with 30-minute P0 response, private Slack, design reviews and usage optimisation |
| Self-hosted server | free software | unlimited actions, cost shifts to the databases, search and compute you operate | MIT licence, same SDKs and programming model as Cloud, operations owned by your team |
Action rates fall as monthly volume accumulates: $50 per million for the first 5M, then 45, 40, 35, 30 and 25, with anything above 200M negotiated. Storage is metered per GB-hour at $0.042 active and $0.00105 retained, with retention up to 90 days before export is required.
FAQ
- What exactly counts as an action? Actions are billable interactions between your application and the server: workflow starts, activity executions and retries, timers, signals, updates and queries, plus exports and Nexus cross-namespace calls. Replay during recovery produces no actions, so the bill tracks real server interactions rather than recomputed work.
- Is self-hosting completely free? The server core is MIT-licensed with no action ceiling and no seat fee. Cost moves to Cassandra or PostgreSQL, Elasticsearch for visibility and the operational work of running a multi-node cluster, so capacity planning and upgrades become your responsibility.
- How long can one workflow run? Workflows may run for a long time, but history has a size limit, so long flows have to be segmented with Continue-As-New, which clears history and continues. Choose segmentation points that are safe to re-enter so payments or shipments are not repeated.
- How much changes when migrating cron jobs? Existing tasks usually become activities, with a workflow handling order, retry and timeout. The work sits in turning implicit state into an explicit flow and adding idempotency keys to external calls; schedules and retry settings can stay as they are.
- Can Cloud and self-hosted run side by side? Yes. The SDK speaks the same protocol, so one codebase can target a Cloud namespace or a private cluster by switching endpoint and certificates through environment variables. Keep server versions within the compatibility window before upgrading either side.
Integration & Code Examples
Define a resumable flow with the Python SDK
from datetime import timedelta
from temporalio import activity, workflow
from temporalio.common import RetryPolicy
@activity.defn
async def charge(order_id: str, amount: int) -> str:
# keep every external call in an activity; retries are handled by policy
return f"charged {order_id} for {amount}"
@workflow.defn
class OrderWorkflow:
def __init__(self) -> None:
self.approved = False
@workflow.signal
def approve(self) -> None:
self.approved = True
@workflow.run
async def run(self, order_id: str, amount: int) -> str:
receipt = await workflow.execute_activity(
charge,
args=[order_id, amount],
start_to_close_timeout=timedelta(seconds=30),
retry_policy=RetryPolicy(maximum_attempts=5),
)
# wait for human approval for up to 24 hours, otherwise cancel
try:
await workflow.wait_condition(lambda: self.approved, timeout=timedelta(hours=24))
except TimeoutError:
return "cancelled"
return receipt
Start a worker and a workflow
# the worker polls a task queue inside one namespace
temporal worker start --address cloud.temporal.io:7233 \
--namespace your-namespace --task-queue orders
# start a workflow and inspect its history
temporal workflow start --address cloud.temporal.io:7233 \
--namespace your-namespace --task-queue orders \
--type OrderWorkflow --workflow-id order-20261130-001 \
--input '{"order_id":"A1001","amount":19900}'
# send the approval signal, then read the result
temporal workflow signal --workflow-id order-20261130-001 --name approve
temporal workflow show --workflow-id order-20261130-001
Use a business key as the workflow ID: starting the same ID again is rejected, which gives idempotency for free.
Community & Resources
- Temporal website — platform positioning, capabilities and solutions
- Pricing — action, storage and support price details
- Documentation — concepts, SDK guides and self-hosting chapters
- Action reference — the list of billable action types
- GitHub repository — MIT-licensed server source and releases
- SDK repositories — Go, Java, TypeScript, Python and .NET clients
- Community forum — usage questions and migration notes
Articles
- 01 Video SEO for Google Search and YouTube 07-18
- 02 Triggered Email Design: Events, Eligibility, and Frequency 07-18
- 03 Online Form Builder Comparison 11-26
- 04 Cold email costs: volume, warm-up and re-domaining 07-18
- 05 Email Bounce Causes and Responses 07-18
- 06 E-Signature and Contract Cost Structure 07-18
- 07 Choosing Free Mailbox and Sending Quotas 11-26
- 08 Community Forum Ownership: Hosted Service or Own Server 11-26
- 09 Cookie Consent Platform Selection 11-26
- 10 Choosing Team Messaging for China-Based Teams 11-26