Skip to content
StackDecode
System Design
18. Advanced Distributed ArchitectureAnimated

Distributed Workflow Engines

Coordinating long-running multi-step processes.

The idea

Engines such as Temporal and Airflow persist state and retry steps.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

TriggerWorkflow engineStep 1Step 2Step 3State store
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A durable engine stores the workflow's state.

step:
1/4
at:
Trigger
1/12

The green dot is a request moving through the system.

Step by step

  1. 1Define the workflow
  2. 2Engine schedules steps
  3. 3State is persisted
  4. 4Failed steps are retried

Where it is used

Data pipelines and business processes.

Watch out for

Workflow definitions must be deterministic and versioned.

Related