Skip to content
StackDecode
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.

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 tasks and dependencies
  2. 2Schedule them
  3. 3Retry failures
  4. 4Report status

Where it is used

ETL and sagas.

Watch out for

A central point of failure unless replicated.

Related