System Design
18. Advanced Distributed ArchitectureAnimated
Workflow Orchestration
Controlling the order of tasks.
The idea
An orchestrator runs tasks in a graph with dependencies and retries.
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 tasks and dependencies
- 2Schedule them
- 3Retry failures
- 4Report status
Where it is used
ETL and sagas.
Watch out for
A central point of failure unless replicated.