Course contentsShow
← Software Engineering
Lesson 1373 of 1,93340. Event-Driven ArchitectureFree lesson

Orchestration: Centralized Control

How orchestration uses a central coordinator to manage service interactions and maintain workflow state.

Orchestration: Centralized Control

You'll learn how orchestration uses a central coordinator to manage service interactions and maintain workflow state in distributed systems.

The Core Idea

In orchestration, a single orchestrator service acts as the conductor of an orchestra—it explicitly tells each service what to do and when to do it. This orchestrator knows the entire workflow logic, calls services in the correct sequence, handles responses, and decides what happens next based on outcomes.

Unlike choreography (where services react to events independently), orchestration centralizes control. The orchestrator maintains the state of the entire workflow, tracking which steps have completed, which are pending, and what to do if something fails.

How It Works

When you need to coordinate a multi-step business process across services:

  1. A request comes into the orchestrator
  2. The orchestrator executes step 1 by calling Service A
  3. It waits for the response and stores the result
  4. Based on that result, it calls Service B with the necessary data
  5. It continues through all steps, managing state and making decisions
  6. If any step fails, the orchestrator knows exactly where in the workflow it is and can trigger compensating transactions

The orchestrator essentially holds the map of the entire saga or workflow. Other services remain simple—they just respond to requests without needing to understand the bigger picture.

When to Use It

Orchestration works well when workflows are complex, require strict ordering, or need centralized monitoring. You get clear visibility into process state and easier debugging since all coordination logic lives in one place.

The trade-off? Your orchestrator becomes a critical component and potential bottleneck. It needs to be highly available and carefully designed.

Key Takeaway: Orchestration centralizes workflow logic and state management in a coordinator service that explicitly directs other services through each step of a process.