Durable execution: event histories, replay, task queues, and how Temporal survives anything.
What Temporal Is — Not a job scheduler or a DAG runner: Temporal saves a function's progress so a long-running process written as ordinary code survives crashes. (4 min read)
The Event History: What Temporal Saves — Temporal never saves your workflow's variables, only an append-only list of what happened to it, and every variable is rebuilt from that list. (14 min read)
Replay: How a Crashed Workflow Comes Back — Recovery is re-running the function from line 1 with every past result handed back from history, so nothing is done a second time. (4 min read)
Determinism: The Price of Replay — Replay works only if the same history yields the same commands, which is why the clock, randomness, map order and real threads are taken away from workflow code. (5 min read)
Workflows vs Activities: Where to Draw the Line — The workflow is the part that gets replayed, so the activity is the only place where real side effects are allowed to happen. (6 min read)
Timers: Why a 30-Day Sleep Costs Nothing — A sleeping workflow holds no thread and no memory: it is a timer row in a database that wakes the workflow up on whichever worker is free. (4 min read)
Signals, Queries, Updates: Talking to a Running Workflow — A signal is a durable, replayed event; a query is never recorded and must not mutate; updates combine both. Confusing them is the most common correctness bug. (4 min read)
History Limits, Continue-As-New, and Child Workflows — The event log behind durability has a hard ceiling of about 50K events, so a workflow meant to run forever must periodically continue as new or split into children. (4 min read)
Versioning: Changing Code While Workflows Are Running — A deploy replays old histories through new code, so an ordinary change can break determinism; versioning lets running workflows keep making their old decisions. (5 min read)
At-Least-Once and Idempotency: Where the Guarantee Stops — Workflow decisions are effectively exactly-once, but activity side effects are at-least-once; the guarantee stops at the network call and idempotency has to cover the rest. (3 min read)
Synthesis and Self-Test — How every Temporal constraint is the bill for one decision, storing events instead of state, then questions that each need two or more parts. (8 min read)