Durable Execution
What this trail covers
Temporal Workflows provide a durable orchestration layer for complex business processes and event-driven systems. This post demonstrates running the DOOM game engine as a Temporal Workflow, highlighting how its deterministic nature and event-sourced input structure (ticcmd_t) map directly to Temporal's durable execution model. By recording player inputs as Workflow Updates and using Queries for rendering, Temporal can replay game state from recorded inputs, enabling recovery from worker crashes. Continue-as-New is used to manage history size by snapshotting game state, and Reset allows rewinding to previous states. This showcases Temporal's ability to handle stateful, deterministic applications by recording inputs and replaying them, a principle applicable to payment pipelines and AI agents.
All Temporal trails