4min snip

Software Engineering Radio - the podcast for professional software developers cover image

SE Radio 596: Maxim Fateev on Durable Execution with Temporal

Software Engineering Radio - the podcast for professional software developers

NOTE

Durability Over Duration

Workflow code execution occurs outside of the temporal cluster, utilizing a worker process that acts as a queue consumer. This worker listens for tasks and executes workflows while handling state transactions to prevent race conditions. If a workflow encounters a sleep command, it converts this into a timer command, which is stored durable in the database, ensuring continued operation even after long delays. Fast-running workflows can be cached in memory for quick access, optimizing performance. Temporal’s architecture supports a wide range of workflow durations, from very short to extremely long, emphasizing durability and guaranteed completion. In distributed systems where transactions may fail, Temporal serves as a reliable substitute for handling compensations, particularly useful in scenarios such as instant payments where operational accuracy is crucial. Additionally, workflows can manage continuous events, like monitoring an airline's loyalty program, to maintain ongoing state over time, ensuring customer interactions are seamless and responsive.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode