How Durable Execution works
Mar 16, 2023

Summary
This post elaborates on the mechanics of Temporal's Durable Execution by detailing the client-server-worker architecture and the sequence of events involved in workflow execution. It explains how the Temporal Server stores the event history, how workers poll for tasks (workflow tasks and activity tasks), and how the server orchestrates retries for failed activities. The post uses a food delivery example to illustrate the flow from starting a workflow, calling an activity, and handling activity completion or failure, emphasizing the role of the event history in ensuring state consistency and durability.