Skip to content
StackDecode
System Design
9. Message Queues and Event-Driven SystemsAnimated

Orchestration

A central coordinator drives the workflow.

The idea

An orchestrator tells each service what to do and handles failures.

Watch it work

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

OrchestratorOrderPaymentInventorycreate order
  • current message
  • earlier
  • failure or attack

The orchestrator drives each local transaction in turn.

step:
1/8
from:
Orchestrator
to:
Order
1/8

Time runs downward. Solid arrows are requests, dashed arrows are replies.

Step by step

  1. 1Orchestrator starts the flow
  2. 2Calls service A
  3. 3Calls service B
  4. 4Handles errors and compensation

Where it is used

Complex workflows.

Watch out for

The orchestrator can become a coupling point.

Related