Distributed Systems

What is durable execution? Temporal explained

Durable execution explained: how Temporal saves each step of a workflow so code resumes after a crash, with activities, replay, retries and a Python example.

  • 8 min read
  • 5 questions
  • +35 XP
Transcript

Code that never fails explained by cats. Kitty builds an app. It takes tuna orders. An Order comes in. Processing starts. Take coin from human. Wait for confirmation. Prepare the tuna. Then, server crashes. Mid-order. The app forgets everything. Did the human pay?

Was the tuna sent? Kitty panics. Kitty tries old magic. Retries everywhere. State everywhere. Pain everywhere. Then Kitty finds Temporal. Kitty writes a workflow. Same steps, but temporalized. Now, If Kitty naps. If the server explodes. Temporal continues execution where it stopped.

No lost tuna. Temporal is an open source tool that makes kitty happy, happy, happy. Reliable code isn’t perfect code. It’s code that finishes. Always.