Vibe Engines is free, interactive AI engineering & system design — runs in your browser. Pick a learning path →
Orchestration vs choreography: a conductor, or a dance?
Once a business process spans several services, someone has to make them work together. You can appoint a conductor that tells each service when to play, or you can let the services react to each other like dancers who each know their own steps. Both get the job done — they just put the control, and the confusion, in different places.
The one distinction that decides everything
Orchestration puts one component — an orchestrator (often a workflow engine) — explicitly in charge: it calls service A, waits, calls service B, handles the error if B fails, and drives the whole process from a single place that knows the flow. Choreography has no central controller: each service emits events ("OrderPlaced," "PaymentTaken") and other services subscribe and react on their own. The logic of "what happens next" isn’t written down in one place — it emerges from who reacts to which event.
Orchestration centralizes control: one brain, explicit flow, easy to see and change, but a coupling point. Choreography distributes control: services stay loosely coupled and autonomous, but the overall process exists only implicitly, spread across everyone’s event subscriptions.
Head to head
| Dimension | Orchestration | Choreography |
|---|---|---|
| Control | Central — one coordinator drives it | Distributed — services react to events |
| Coupling | Services coupled to the orchestrator | Loosely coupled via events |
| Where the flow lives | Explicit, in one place | Implicit, across subscriptions |
| Visibility / tracing | Easy — one place shows the whole flow | Hard — trace events across services |
| Failure handling | Coordinator handles compensation | Each service must handle its own |
| Adding a step | Edit the workflow | Add a subscriber — no central edit |
| Failure mode | Orchestrator is a bottleneck / SPOF | Emergent behavior nobody fully sees |
When to use each
Reach for orchestration
- Complex, multi-step workflows with clear ordering
- You need one place to see and reason about the whole flow
- Compensation/rollback logic must be coordinated (sagas)
- Business processes that change and need to be edited centrally
- Strong observability and auditability are required
Reach for choreography
- You want services maximally decoupled and independently deployable
- Reactions are simple and mostly one-hop
- New consumers should be able to join without touching producers
- High-throughput, event-driven fan-out
- No single team should own the end-to-end flow
The answer is usually "orchestrate the transaction, choreograph the notifications"
You don’t have to choose one for the whole system. A common, healthy split: orchestrate the parts that need a guaranteed outcome — a checkout that must take payment, reserve inventory and create a shipment, with compensation if any step fails (this is the classic saga pattern, and an orchestrated saga keeps the rollback logic in one legible place). Then choreograph the loosely-coupled reactions around it — "OrderShipped" fires an event, and the emails service, analytics service and loyalty service each react independently, no coordinator needed and no reason to couple them to the checkout flow.
Start choreographed for simple event reactions — it keeps services decoupled with almost no machinery. Introduce an orchestrator when a process has real multi-step ordering and failure-compensation that becomes impossible to reason about when it’s scattered across event handlers.
The visibility-versus-coupling trade nobody escapes
Orchestration’s great gift is visibility: the entire process is written in one workflow, so you can see it, trace it, and change it in a single place — and the orchestrator can own retries and compensation coherently. Its cost is coupling: every service now depends on the orchestrator, which becomes a place changes funnel through and a potential bottleneck or single point of failure.
Choreography inverts both. Services stay beautifully decoupled — you can add a new reaction by subscribing to an existing event, touching nothing that already runs. But the end-to-end process becomes emergent: it exists only as the sum of everyone’s subscriptions, so answering "what happens when an order is placed?" means chasing events across a dozen services, and a subtle bug (two services reacting to the same event, or a missing subscriber) can be genuinely hard to see. Decoupling and legibility pull in opposite directions; you’re choosing which one to spend.
Orchestration trades looser coupling for a single, legible, controllable flow. Choreography trades that central visibility for autonomy and easy extensibility. Neither removes the coordination — it just decides who holds it.
A worked scenario: order fulfillment
An order must take payment, reserve inventory, and create a shipment — and if inventory reservation fails after payment, the payment has to be refunded. That’s a transaction with real ordering and compensation, so an orchestrated saga fits: a workflow engine calls each step, and if a later step fails it runs the compensating actions (refund, release) from one place you can actually read and audit. Scattering that rollback logic across event handlers is how money quietly goes missing.
Once the order is confirmed and shipped, though, a swarm of things should happen that don’t need coordination: send a confirmation email, update analytics, award loyalty points, notify the warehouse dashboard. Here choreography shines — "OrderShipped" is published, and each of those services reacts independently. Adding a "text the customer" feature later means one new subscriber, with zero changes to the fulfillment workflow. Orchestrate the money-critical core; choreograph the reactions around it.
Guaranteed, ordered, compensatable processes → orchestrate (saga). Loosely-coupled, fan-out reactions → choreograph. Big systems use both, drawing the line at "does this need a coordinated outcome?"
The picture: one conductor, or a shared event bus
Cost and trade-offs: latency, state and change
For a process rather than an algorithm, read Time as latency or effort, and Space as what each style must store or couple. The numbers count messages in the page’s three-step order flow: payment, then inventory, then shipping.
| Case | Time | Space | Why |
|---|---|---|---|
| Happy path, 3 steps | Orchestrated: 6 messages, a command and a reply per step. Choreographed: 4 events (OrderPlaced, PaymentTaken, StockReserved, ShipmentCreated) | Orchestrator keeps one durable state record per order; each choreographed service keeps only its own step | The extra hop per step costs a little latency. It buys one place that knows where every order is. |
| Step 3 fails | Orchestrator runs refund and release, in reverse order | All compensation logic in one workflow | Choreographed, a ShipmentFailed event must reach Inventory and Payment, and each must know how to undo its own step. |
| Add a reaction (text the customer) | Orchestrated: edit and redeploy the workflow. Choreographed: deploy one new subscriber | The orchestrator grows one step per reaction | Where choreography wins outright, as the page’s fan-out case shows. |
| “Where is order 123?” | Orchestrated: one lookup in the workflow state. Choreographed: follow a correlation id through traces and logs | Choreography needs that tracing in place before the incident | With no single owner, a stuck order is noticed by a customer before a dashboard. |
| Orchestrator goes down | New and in-flight orders pause until it recovers | Its persisted state lets it resume each saga where it stopped | A durable workflow engine stops progress, not data. One that keeps state in memory loses both. |
| Change a running process | Orchestrated: version the workflow; orders in flight finish on the old version | Two definitions live side by side for a while | Choreographed, an event schema change must stay compatible for every subscriber, including ones you do not know about. |
| Fan-out to 4 unrelated teams | Orchestrated: 4 calls the orchestrator must make, time out and retry. Choreographed: 1 publish | The broker keeps one copy of the event; each consumer tracks its own position | A slow analytics service delays nothing when it reads from the bus; called by an orchestrator, it can hold up the step that calls it. |
| A wait measured in days (delivery confirmed) | Orchestrated: a durable timer in the workflow, which engines such as Temporal and AWS Step Functions persist | One sleeping workflow instance per order | Choreographed, someone has to build the clock: a scheduled job or a delayed message, owned by one of the services. |
| Testing the whole flow | Orchestrated: test the workflow definition with the services stubbed | One artefact holds the sequence | Choreographed, only end-to-end or contract tests across services ever see the full sequence run. |
Neither style is cheaper overall. Orchestration pays a fixed cost up front: a component to run, a state store, an extra hop per step. In return, failure handling and visibility stay simple as the process grows. Choreography is nearly free to start, but its cost grows with the number of services in the flow, because every new participant is another place where the sequence lives and another subscriber an event change can break. A useful line: once a flow has a step that must be undone if a later one fails, the fixed cost of an orchestrator is usually smaller than the cost of scattering that undo logic.
Common mistakes
- Writing to the database, then publishing
A service saves the order and then publishes OrderPlaced. If it crashes between the two, the order exists and nobody downstream ever hears of it; publish first and crash, and they hear of an order that does not exist. Use a transactional outbox: write the event to an outbox table in the same transaction as the data, and let a relay (or change data capture such as Debezium) publish it. This bites both styles, but choreography depends on it entirely.
- Assuming each event arrives once, in order
Brokers deliver at least once, so PaymentTaken can arrive twice and charge loyalty points twice. Events from different producers can also arrive out of order: StockReserved before OrderPlaced has been processed. Make every handler idempotent with an event id it records, and make it tolerate an event for an entity it has not seen yet, by parking it or retrying later.
- Treating compensation as rollback
A refund is a new action, not an undo. It can fail and needs its own retries, and some steps cannot be undone at all: a sent email, a shipped parcel. Order the saga so the steps that cannot be compensated come last, after every step that might still fail. A compensating step that is not idempotent can refund twice.
- An orchestrator that does the business logic
The orchestrator should decide what happens next, not compute prices, check stock rules or format emails. Once domain logic moves into it, every service team has to change the orchestrator to change their own behaviour, which is the coupling the page warns about at its worst. Keep it to sequencing, timeouts, retries and compensation, and keep its state durable, so a restart resumes sagas instead of losing them.
- No owner for a choreographed flow’s deadline
If Inventory’s consumer dies, no event says “nothing happened”. The order just sits in “paid” forever, and no service is responsible for noticing. Give every multi-step choreographed flow a timeout someone owns, such as a watchdog that finds orders stuck in one state past a deadline. Also check for cycles: two services that react to each other’s events can loop without either team seeing the whole circle.
Which would you pick?
Three situations. Pick the side you'd actually build — the explanation follows.
Checkout must reserve stock, charge the card, then create a shipment — and if the charge fails, the stock reservation has to be released.
Guaranteed, ordered and compensatable is the page's orchestration signature. Choreographed, the process exists only implicitly across three services, so "release the reservation when the charge fails" has no single owner — and a cleanup job is you reinventing compensation without the ordering that makes it correct.
When an order ships, four unrelated teams want to react: email the customer, update analytics, notify the warehouse dashboard, refresh a recommendation model.
This is a fan-out reaction with no coordinated outcome to guarantee: nothing needs ordering and nothing needs compensating. Orchestrating means the orchestrator changes every time a fifth team wants in, turning a decoupled subscription into a coupling point for no benefit.
A team argues their choreographed order flow is "more decoupled, so strictly better."
The page is explicit that this is a trade, not a ranking: orchestration buys a single legible flow at the cost of a coupling point, choreography buys autonomy at the cost of the process existing only implicitly. Calling one strictly better hides the coordination rather than removing it — and documentation describes the implicit process without making it controllable.
Quick answers
What's the difference between orchestration and choreography?
Orchestration puts one central coordinator in charge of a multi-service process — it calls each service in turn and handles failures from a single place that knows the flow. Choreography has no central controller: services emit events and others react on their own, so the overall process emerges from who subscribes to what. Orchestration centralizes control and visibility; choreography maximizes loose coupling and autonomy.
Which is better for microservices?
Neither universally — they trade differently. Orchestration gives you one legible, controllable, auditable flow at the cost of coupling every service to the coordinator. Choreography keeps services decoupled and independently deployable at the cost of an emergent process that is harder to trace. Many systems orchestrate the transactional core and choreograph the loosely-coupled reactions around it.
What is the saga pattern?
A way to manage a transaction that spans multiple services without a distributed lock: the process runs as a sequence of local steps, and if a later step fails, compensating actions undo the earlier ones (refund a payment, release a reservation). Sagas can be orchestrated (a coordinator drives the steps and compensation) or choreographed (services react to each other’s events).
When should I add an orchestrator?
When a process has real multi-step ordering and failure-compensation that becomes hard to reason about scattered across event handlers — for example a checkout that must coordinate payment, inventory and shipping with rollback. For simple, one-hop event reactions, choreography is lighter and keeps services decoupled, so you do not need an orchestrator.
Orchestration vs Choreography: a conductor, or a dance?
Explore the topic
See this alongside everything else on the same subject — handbooks, system designs, challenges and tools, in one place.
More Handbooks
- The System Design Fundamentals HandbookThe load-bearing ideas behind every distributed system — the CAP theorem and consistency models, concurrency and locking, partitioning and replication, and consensus and coordination — each tied to a real worked design you can study interactively.Read →
- CAP Theorem & Consistency ModelsWhat a distributed system can promise when the network splits — CP vs AP, why "CA" is a myth, PACELC, and the full spectrum from linearizable to eventual consistency. Part of System Design Fundamentals.Read →
- Partitioning, Sharding & ReplicationHow one dataset becomes many — range vs hash partitioning, consistent hashing and virtual nodes, hot partitions, replication topologies, replication lag, and quorums. Part of System Design Fundamentals.Read →
- Consensus, Transactions & CoordinationHow nodes that can crash still agree on one truth — majority quorums, Raft and Paxos, leader election, two-phase commit vs the saga pattern, and idempotency for exactly-once effects. Part of System Design Fundamentals.Read →
- The Kubernetes HandbookThe one idea under all the YAML — declare desired state, and a control loop makes reality match. Covers the orchestration problem, pods, deployments and replicasets, services and networking, the reconciliation loop and self-healing, the scheduler, config/secrets and health probes, autoscaling, and when you actually need Kubernetes.Read →
- The Observability HandbookSeeing inside production — monitoring vs observability, the three pillars (metrics, logs, traces) and what each answers, structured logging, metric types and the cardinality trap, distributed tracing, the golden signals and SLIs/SLOs/error budgets, alerting on symptoms not causes, and correlating all three during an incident.Read →