Temporal.io vs Cadence vs AWS Step Functions: Distributed Workflow Orchestration & State Durability
Temporal.io vs Cadence vs AWS Step Functions: Distributed Workflow Orchestration & State Durability Executive Summary & Decision Matrix All three systems solve the same core problem — durable execution: a workflow function's logical progress is checkpointed to durable storage so that process crashes, deploys, and hardware failures never lose state or duplicate side effects. The divergence is in…
The article compares three workflow orchestration systems: Temporal.io, Cadence, and AWS Step Functions. All three address the challenge of ensuring durable execution of workflow functions, meaning that if a process crashes, deploys or suffers hardware failures, the state is never lost and side effects are not duplicated.
Temporal.io and Cadence both forked from the same original codebase, with Cadence being open-sourced by Uber in 2017 and Temporal following in 2019. Both systems are self-hostable, database-backed state machines. AWS Step Functions, on the other hand, is a managed, closed-source system that utilizes AWS internal durability primitives like Multi-AZ DynamoDB-like replication.
The benchmarks use a 64-vCPU c6i.32xlarge instance cluster with 8 workers for Temporal and Cadence, and a standard workflow class for Step Functions. The systems were evaluated using a synthetic "order saga" workflow with 6 activities, each having a 2KB payload, and a 30% simulated failure-retry rate.
Temporal and Cadence achieve a sustained workflow throughput of 41,000 and 28,500 workflows per second respectively, while AWS Step Functions shows lower throughput at ~2,000 state transitions per second. The p50 activity dispatch latency for Temporal and Cadence is 3.1 ms and 4.8 ms respectively, while Step Functions lags behind at 62 ms. The p99 latency for Temporal and Cadence is 11 ms and 19 ms respectively, while Step Functions spikes up to 310 ms.
The event history read amplification for Temporal and Cadence is 42 ms and 71 ms respectively, while Step Functions is higher at 190 ms. The annual cost for Temporal and Cadence at 50 million executions per month is approximately $9,800 and $8,900 respectively, while AWS Step Functions incurs a higher cost of ~$126,500 per month for 5 billion transitions.
In conclusion, if your workflow logic is in real code and your volume exceeds ~5 million executions per month, Temporal (Cadence being an option if you are already in an Uber-style environment) is recommended. Conversely, if you are orchestrating infrequent, low-volume AWS service glue under 100k executions per month and want zero infrastructure ownership, Step Functions offers the best total cost of failure, although it lags behind in throughput and latency.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to