When to Reach for It: vs Step Functions, Airflow, and a Queue

TemporalAWS Step FunctionsAirflowQueue + retries
You writeOrdinary code in your languageA state machine in JSON/ASL (or a CDK DSL)A Python DAGHandlers + your own state columns
Control flowNative if, loops, try/catch, local variablesDeclarative states, Choice, MapTask dependencies; branching is awkwardWhatever you hand-build
Shape known before run?No — fully dynamicMostly declared up frontYes — it's a DAGN/A
Long waitsNative; days to years, free while idleSupported, up to a 1-year executionAwkward — the scheduler owns the clockYou build a sweeper
Scheduled batch / backfillPossible (Schedules), not its strengthVia EventBridgeIts whole reason for existingCron
TestingUnit-test workflows in-process; replay real historiesMostly integration testingDAG tests, real runsNormal, but the state machine is untested
Ops burdenHigh self-hosted (Cassandra + Elasticsearch); low on CloudNone — fully managedMedium — scheduler + workers + DBLow
Lock-inOpen source, self-hostableAWSOpen sourceNone
Cost shapePer action / per workflow (Cloud) or your infraPer state transition — chatty workflows get expensiveYour infraCheap

Choose Temporal when…

The process is long-lived and stateful; branching depends on runtime data; steps are minutes to months; you want the logic in one testable function in your own language; and the alternative you're staring at is a status column plus three cron sweepers.

Choose something else when…

The work is a fixed nightly DAG over datasets (Airflow / Dagster); you're fully on AWS, the flow is a handful of Lambda steps, and running a cluster is unthinkable (Step Functions); or it's one idempotent job with no sequencing (a queue).

The Honest Costs

CostWhat it actually feels like
Per-step overheadEach activity is a few database writes and a couple of round trips. That is nothing next to a 200 ms API call and everything next to a 2 µs function. Temporal is an orchestration layer, not a compute layer — it is the wrong place for tight loops and per-event stream processing. At 100K events/sec you want Kafka and Flink, not 100K workflows/sec.
Operating the clusterSelf-hosting means running Cassandra (or MySQL/Postgres) plus Elasticsearch, sizing shards you can't change (see Inside the server), and understanding the queue processors. Many teams should start on Temporal Cloud and revisit later; the "we'll just run the docker-compose in prod" plan ends badly.
The determinism taxEvery engineer touching workflow code must internalize the Determinism part and Versioning. This is a real onboarding cost, and it is the thing teams underestimate — the failure mode is subtle, delayed, and surfaces as blocked workflows after a deploy, not as a failing test.
A new tier in the critical pathYour business processes now depend on a stateful cluster's availability. It degrades gracefully (workflows pause and resume rather than fail), but "paused" is still an outage to the customer waiting on their order.
  • Adopting it buys: Deletion of hand-rolled state machines, retry columns, and sweeper crons; complete auditability of every business process for free; and crash-tolerance as a property of the runtime rather than of your code.
  • Adopting it does NOT buy: Distributed transactions, exactly-once side effects, a high-throughput event processor, or freedom from thinking about failure — it relocates that thinking to activity boundaries and idempotency keys.