Distributed Systems

How Temporal keeps workflows running through crashes

How Temporal keeps a multi-step workflow running through network outages and crashes: activities, retries, the event history and resuming where it stopped.

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

Tuna in Space, explained by cats. Kitty is an astronaut. She's on her First mission. Going to space to get tuna. Rare tuna. Very expensive tuna. The mission is long. Kitty needs motivation. So Kitty builds a workflows to fetch tuna recipes.

New recipes. Every hour. The workflow runs tasks. Fetch. Validate. Save. Some steps need Internet. APIs. and Data. Then the rocket takes off. Connection is gone. No internet. Recipes get stuck. But Kitty uses Temporal. So it waits. Two days later.

The rocket orbits the Earth. Internet Connection The workflow resumes. Right where it stopped. Recipes starts coming. And Kitty stays motivated. That’s why Kitty used temporal. Because connections come and go. But tuna should always be there.