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.
- 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
- 1Define the workflow
- 2Engine schedules steps
- 3State is persisted
- 4Failed steps are retried
Where it is used
Data pipelines and business processes.
Watch out for
Workflow definitions must be deterministic and versioned.