Orchestration, Choreography, or Swarm: How to Coordinate a Collection of AI Agents Without Losing Control
Most multi-agent systems don’t fail because the models are bad. They fail because coordination design is wrong. And by the time you realize it, you’ve already built yourself into a corner.
A team builds three agents. Each one works well in isolation. They wire them together with whatever coordination logic their framework provides. It runs. They demo it. Leadership is impressed. They go to production.
Six months later, they’re rewriting the coordination layer from scratch. Not because the agents got worse — because the coordination pattern they chose doesn’t match their actual workload. The orchestrator became a bottleneck. Or the event-driven agents started looping. Or the cost of parallel execution exploded and nobody noticed until the invoice arrived.
The root cause is always the same: they picked a coordination pattern without understanding what they were choosing. Often because the framework chose it for them.
There are three fundamental coordination patterns for multi-agent systems — orchestration, choreography, and swarm — and a separate operational layer — fleet management — that most articles either ignore or conflate with orchestration. Each one has different failure modes, different cost profiles, different debugging experiences, and different scaling ceilings.
This article breaks all of them down so you can choose deliberately instead of discovering your constraints in production.
The Three-Layer Model (and Why Most Systems Fail)
Before diving into patterns, here’s the mental model that will save you months of rework:
Every multi-agent system has three layers:
- Coordination — who decides what happens next (orchestration, choreography, or swarm)
- Execution — agents doing the actual work (writing code, analyzing data, running tests)
- Operations — fleet management keeping agents healthy, versioned, and scaled
Most systems fail because these layers get mixed. The orchestrator handles coordination and fleet management. Agents embed workflow assumptions and execution logic. The result is a tangled system where changing how you route tasks also requires changing how you provision agents — and both break when you touch either one.
Keeping these layers separate isn’t academic purity. It’s the difference between a system you can evolve and a system you have to replace.
One More Distinction Before We Start: Coordination Is Not Communication
Before we compare patterns, let’s kill a common confusion.
Communication is how agents exchange data — message queues, shared filesystems, API calls, event buses. This is plumbing.
Coordination is how agents make decisions about what to do, when to do it, and how to respond when things go wrong. This is architecture.
You can use Kafka as the communication layer and implement orchestration, choreography, or swarm on top of it. The coordination pattern isn’t about the wire protocol. It’s about where the decision-making authority lives. Teams that confuse these end up debating message brokers when they should be debating control flow.
Pattern 1: Orchestration — The Central Brain
In an orchestrated system, a single component — the orchestrator — owns the workflow. It decomposes a high-level goal into tasks, assigns each task to a specific agent, collects results, handles errors, and decides the next step.
The orchestrator is the only component that sees the full picture. Individual agents are stateless executors: they receive a task, do the work, return a result. They don’t know about each other. They don’t know where they are in the pipeline.
What this looks like in practice:
Orchestrator receives: "Implement user authentication feature"
→ Assigns to Agent-A: "Analyze requirements and produce acceptance criteria"
→ Waits for result
→ Assigns to Agent-B: "Design technical approach based on these criteria"
→ Waits for result
→ Assigns to Agent-C: "Implement code based on this design"
→ Assigns to Agent-D: "Write tests for this implementation"
→ Evaluates all results
→ Decides: merge, retry, or escalateWhy teams choose orchestration:
Predictability. You can draw the workflow as a directed graph. You can trace every decision back to a single point. When something fails, you know exactly where it failed and who was responsible. Rollback is straightforward because the orchestrator controls the sequence.
For regulated industries — banking, healthcare, government — this is often the only acceptable pattern. Auditors want to see a clear chain of custody for every decision.
Where orchestration breaks:
The orchestrator is a bottleneck by definition. Every task flows through it. If you have twenty agents and each one produces a result every thirty seconds, the orchestrator is making a routing decision every 1.5 seconds. At scale, this becomes a throughput ceiling.
There’s also a subtler problem: the orchestrator must be the smartest component in the system. It needs to understand every agent’s capabilities, every possible failure mode, every valid recovery strategy. As your agent collection grows, the orchestrator’s complexity grows faster. Eventually, you’re spending more tokens and engineering effort on the orchestrator than on the agents themselves.
And if the orchestrator goes down, everything stops. It’s a single point of failure by design.
Pattern 2: Choreography — The Event-Driven Dance
In a choreographed system, there is no central controller. Instead, agents react to events. When one agent completes its work, it publishes an event. Other agents subscribe to events they care about and start their own work when triggered.
No one directs the workflow. The workflow emerges from the sum of individual agent behaviors and event subscriptions.
What this looks like in practice:
Agent-A detects: new feature request created
→ Analyzes requirements
→ Publishes event: "requirements_analyzed" with artifact reference
Agent-B subscribes to: "requirements_analyzed"
→ Produces technical design
→ Publishes event: "design_completed"
Agent-C subscribes to: "design_completed"
→ Implements code
→ Publishes event: "code_ready"
Agent-D subscribes to: "code_ready"
→ Runs tests
→ Publishes event: "tests_passed" or "tests_failed"
Agent-B subscribes to: "tests_failed"
→ Reviews failure
→ Publishes event: "design_revised"There’s elegance here. Agents are loosely coupled. You can add a new agent to the system by subscribing it to existing events — no changes to any other component. You can remove an agent and the rest of the system continues. The architecture is inherently extensible.
Why teams choose choreography:
Scalability. There’s no bottleneck because there’s no central router. Each agent independently processes events as they arrive. If one agent is slow, it doesn’t block others unless they’re explicitly waiting for its output.
Resilience. If one agent crashes, the rest continue processing. Events queue up in the message bus. When the agent recovers, it picks up where it left off. The system degrades gracefully instead of failing catastrophically.
Loose coupling also means team independence. Different teams can own different agents, deploy independently, and evolve their agent’s behavior without coordinating with everyone else.
Where choreography breaks:
Debugging. When something goes wrong in a choreographed system, reconstructing what happened requires tracing events across multiple agents, queues, and timestamps. There’s no single place to look. The “workflow” exists only as a pattern of events distributed across the system — and that pattern is different for every run.
Circular dependencies. Agent-B publishes an event that triggers Agent-C, which publishes an event that triggers Agent-B. Without careful design, you get infinite loops. In traditional microservices, this is a known problem. With LLM-based agents, it’s worse — because each iteration costs real money in API tokens and each agent’s output is non-deterministic.
Global state management. In an orchestrated system, the orchestrator holds the current state of the workflow. In a choreographed system, the state is distributed. No single component knows the full picture at any point in time. This makes it genuinely hard to answer simple questions like “what percentage of this workflow is complete?” or “can I safely cancel this pipeline?”
Pattern 3: Swarm — The Emergent Collective
Swarm coordination is fundamentally different from the first two patterns. In orchestration and choreography, each agent has a predefined role and a defined scope of work. In a swarm, agents follow simple local rules and the collective behavior emerges from their interactions.
The concept comes from biology: ant colonies, bird flocks, bee hives. No individual ant knows the colony’s plan. Each ant follows a small set of local rules — follow pheromone trails, pick up food, return to the nest. But the colony as a whole solves complex optimization problems like finding the shortest path to a food source.
Applied to AI agents, a swarm looks like this: you deploy N agents with the same (or similar) capabilities. Each agent can see its local context — the task in front of it, the results from nearby agents, some shared signals. It decides what to do based on simple heuristics. The system-level outcome emerges from thousands of these local decisions.
What this looks like in practice:
Shared signal board:
- Task: "Refactor authentication module" [unclaimed]
- Task: "Write integration tests" [claimed by Agent-7]
- Task: "Review PR #42" [completed by Agent-3]
Agent-12 checks the board:
→ Sees "Refactor authentication module" is unclaimed
→ Evaluates own capability match: high
→ Claims the task
→ Works on it
→ Posts result to the board
→ Looks for the next unclaimed taskWhy swarm patterns are gaining traction:
Radical scalability. Adding more agents to a swarm doesn’t require changing any coordination logic. You just deploy more instances. The system self-balances — agents naturally gravitate toward unclaimed work.
Fault tolerance without design. If an agent dies mid-task, the task times out and returns to the unclaimed pool. Another agent picks it up. No retry logic needed at the coordinator level, because there is no coordinator.
For embarrassingly parallel workloads — processing a backlog of code reviews, running tests across many modules, scanning a large codebase for security issues — swarms can be dramatically more efficient than sequential orchestration.
Where swarms break:
Get Rustam Ivaniakov’s stories in your inbox
Join Medium for free to get updates from this writer.
Sequential dependencies. If Task B depends on the output of Task A, a pure swarm has no natural mechanism to enforce ordering. You end up adding priority signals, dependency markers, and sequencing logic — which starts looking suspiciously like an orchestrator.
Quality control. In an orchestrated system, the orchestrator can validate each step before proceeding. In a swarm, agents operate independently. If Agent-12 produces a bad result, Agent-15 might build on top of it before anyone notices. Error propagation in swarms is fast and hard to contain.
Determinism. Run the same swarm with the same inputs twice, and you’ll likely get different results — different agents will claim different tasks in different orders. For compliance-heavy environments, this is a non-starter.
The most fundamental challenge: emergent behavior is powerful but opaque. When the swarm produces an unexpected outcome — good or bad — tracing the cause back to individual agent decisions is extremely difficult. The behavior wasn’t designed; it emerged. Debugging emergent behavior is an open research problem; see the related article on Observability in Multi-Agent Systems.
The Honest Comparison
The Layer Beneath All Three: Fleet Management
Every coordination pattern above answers the same question: “how do agents collaborate on tasks?” But there’s a different question that none of them address: “who manages the agents themselves?”
This is where fleet management enters — not as a fourth coordination pattern, but as an operational layer that sits beneath orchestration, choreography, and swarm alike.
A fleet is a centrally managed collection of agent instances where a fleet manager handles the operational lifecycle: provisioning, health monitoring, version control, scaling, configuration, and decommissioning. The fleet manager doesn’t care about task routing or workflow logic. It cares about whether there are enough healthy agents to accept tasks in the first place.
The distinction matters because these are fundamentally different responsibilities with different failure modes, different scaling concerns, and different engineering skills required.
The analogy: think dispatcher vs. garage manager. The dispatcher decides which taxi goes where — that’s orchestration. The garage manager ensures there are enough taxis running, they all have the latest maps, the broken ones get pulled for maintenance, and new ones are added during rush hour. The garage manager doesn’t care about routes. The dispatcher doesn’t care about oil changes. Both are essential, and conflating them creates a component that does both jobs poorly.
What fleet management handles:
Fleet Manager maintains:
- Agent registry: 14 agents active, 2 in maintenance, 1 being provisioned
- Health dashboard: Agent-5 response latency > threshold → flagged
- Version control: Agents 1-10 on prompt v2.3, Agents 11-14 on prompt v2.4 (canary)
- Scaling policy: if queue depth > 50, provision 2 additional agents
- Configuration: all agents use model X, temperature 0.2, max tokens 4096
Fleet Manager actions:
→ Detects Agent-5 is degraded → routes no new tasks to Agent-5
→ Queue depth hits 60 → spins up Agent-15 and Agent-16
→ Canary agents on v2.4 show 12% higher error rate → rolls back to v2.3
→ Agent-9 has been idle for 30 minutes → decommissions to save costWhy this layer is critical:
All three coordination patterns assume agents exist and are healthy. Fleet doesn’t make that assumption. In production, agents fail. Containers crash. API rate limits trigger. Models get updated. Prompts need versioning. Context windows overflow. These are operational concerns, not coordination concerns — and ignoring them is how teams end up with a beautifully orchestrated workflow running on unreliable infrastructure.
Fleet management is especially critical when agents are ephemeral — spun up per task and destroyed after. Someone needs to manage the container lifecycle, inject the right secrets, ensure the right model version is loaded, and collect telemetry before the container dies. That someone is the fleet manager.
Fleet also enables canary deployments for AI. You roll out a new prompt version to 10% of your agent pool, compare error rates and output quality against the baseline, and promote or rollback — exactly like traditional service deployments. Without fleet-level management, every prompt change is a big-bang deployment across all agents simultaneously.
Why it gets conflated with orchestration:
Some frameworks bundle fleet-level concerns into the orchestrator. The orchestrator ends up responsible for both workflow logic (“assign this task to a code review agent”) and operational logic (“are there enough code review agents running?”). This works at small scale — five agents, one version, no autoscaling. At production scale, the orchestrator becomes a god component that is impossible to test, debug, or evolve independently.
The cleanest architectures separate these layers explicitly. The fleet manager guarantees that a pool of healthy, correctly-versioned agents is available. The coordination layer — whether orchestration, choreography, or swarm — routes tasks to that pool. Neither layer needs to understand the other’s internals.
The Pattern Nobody Talks About: Hybrids
In practice, production systems rarely use a pure pattern. The most robust architectures combine patterns at different levels of the system.
Orchestrated choreography. A top-level orchestrator breaks a goal into phases. Within each phase, agents coordinate via events. The orchestrator doesn’t micromanage individual agent interactions — it manages phase transitions, gates, and rollback points.
This gives you the predictability of orchestration at the strategic level and the flexibility of choreography at the tactical level. The orchestrator doesn’t need to know about every agent — only about phases and their completion criteria.
Orchestrated swarm. The orchestrator decomposes work into a batch of independent tasks and hands them to a swarm pool. Agents claim and process tasks in parallel. The orchestrator monitors completion, handles stragglers, and triggers the next phase when enough tasks are done.
This is particularly effective for workloads that are partially parallelizable: you use orchestration for the sequential spine of the pipeline and swarm processing for the parallel branches.
Choreographed swarm. Events trigger swarm activation. When a “code_ready” event fires, a pool of review agents swarms the pull request — each examining a different dimension (security, performance, style, correctness). Their results are aggregated by a lightweight collector that publishes a summary event.
All of these hybrids benefit from fleet management running underneath — handling agent provisioning, health checks, and version control while the coordination logic above focuses purely on workflow.
Choosing a Pattern: The Decision Framework
Rather than picking a pattern based on popularity or framework defaults, ask these five questions about your workload:
1. How sequential is the workflow? If tasks must happen in strict order with validation gates between them, start with orchestration. Choreography and swarms are poor at enforcing strict sequences.
2. How many agents will you run? Under ten agents, orchestration is manageable and gives you the best debuggability. Above fifty, the orchestrator becomes a bottleneck and you need choreography or swarm elements.
3. How important is determinism? If you need the same inputs to produce the same workflow every time — for compliance, audit, or reproducibility — orchestration is the only pure pattern that delivers this. Choreography can be made deterministic with effort. Swarms cannot.
4. How parallel is the work? If 80% of your tasks can run independently, a swarm or a choreographed system will dramatically outperform a sequential orchestrator. If 80% of your tasks are sequential, a swarm buys you nothing.
5. What does failure recovery look like? If a failure in step 5 means you need to undo steps 1 through 4 (compensation), orchestration gives you the cleanest recovery path. If failures are isolated and idempotent (the agent can just retry), choreography and swarms handle this naturally.
Most real systems land on a hybrid: orchestration for the critical path, choreography for event-driven side effects, and swarm processing for parallelizable bulk work.
Separately from the coordination choice, ask one more question:
Do your agents need lifecycle management? If agents are ephemeral — spun up per task and destroyed after, running in containers with injected secrets and scoped context — you need a fleet management layer from day one, regardless of which coordination pattern you choose. Without it, you’ll lose track of what’s running, what version it’s on, and what state it was in when it died.
What Nobody Warns You About
The coordination layer becomes the most expensive component. As your agent collection grows, you’ll spend more engineering time, more tokens, and more debugging effort on coordination than on any individual agent. Plan for this from day one.
Most frameworks don’t let you choose a coordination pattern. They choose it for you.
LangGraph pushes you toward orchestration — everything is a directed graph with conditional edges. This works beautifully for sequential, well-defined workflows. But when your workload is inherently parallel or event-driven, you’ll find yourself fighting the framework’s assumptions instead of solving your actual problem.
CrewAI abstracts coordination behind role-based “crews” — until the abstraction leaks. When you need to control retry logic, manage partial failures, or implement custom routing, you discover that the friendly role-assignment API hides a coordination model you can’t easily override.
AutoGen encourages implicit choreography through conversational “GroupChat” patterns without strong observability built in. Agents talk to each other and the conversation flows naturally — until it doesn’t, and you have no structured way to trace why Agent-3 decided to re-open a discussion that Agent-1 already closed.
OpenAI’s Agents SDK assumes explicit handoffs — one agent passes control to another. Clean and debuggable, but architecturally it’s orchestration with a distributed feel. Try to build a true swarm or event-driven system on top of it and you’ll be working against the grain.
The point isn’t that these frameworks are bad. They’re well-built tools optimized for specific patterns. The mistake is choosing a framework first and then discovering which coordination pattern it locked you into. Choose the pattern, then find the framework that supports it — or build a thin coordination layer yourself. A 150-line custom orchestrator that matches your workload will outperform any framework that doesn’t.
Observability requirements scale with coordination complexity. An orchestrated system needs centralized logging. A choreographed system needs distributed tracing with event correlation. A swarm needs both, plus anomaly detection on emergent behavior. If you don’t invest in observability proportional to your coordination complexity, you will lose the ability to debug your system within months.
Token costs are non-obvious — and they scale differently per pattern. This is the part that surprises teams at the first production invoice.
In orchestration, cost is concentrated in the orchestrator. Every routing decision — “which agent handles this?”, “did that result pass quality gates?”, “should I retry or escalate?” — is an LLM call. The orchestrator often consumes more tokens than any individual agent because it reasons about the entire workflow state on every step. A 10-agent pipeline with 5 decision points means the orchestrator processes the full context 5 times. At production volume, the orchestrator alone can account for 30–40% of your total token spend.
In choreography, cost spreads across agents reacting to events. Each agent needs enough context in its prompt to understand what the incoming event means, what its role is, and how to respond. There’s no shared state to lean on, so every agent carries its own context overhead. The total cost is more predictable per-agent, but the aggregate grows linearly with the number of event-driven reactions — and some events trigger cascades that multiply the cost of a single input.
In swarms, cost can explode — because parallelism is unconstrained by default. Ten agents swarming a task means ten concurrent LLM calls, each with its own context. If the swarm doesn’t converge quickly — if agents are duplicating work, or claiming tasks they can’t complete and returning them — the cost grows multiplicatively. Without budget caps per swarm activation, a single poorly-scoped task can burn through your daily token allocation in minutes.
Fleet management is invisible until it isn’t. Nobody thinks about agent lifecycle management when they have five agents. At fifty agents across multiple versions, with canary deployments and auto-scaling — the fleet layer is what keeps your system running while you focus on coordination logic. Teams that skip fleet management end up building it anyway, usually at 3 AM during an incident.
The Takeaway
Remember the three layers: coordination, execution, operations. Keep them separate.
Orchestration, choreography, and swarm aren’t competing religions — they’re coordination tools with different failure modes, cost profiles, and scaling ceilings. Fleet management isn’t a fourth option in that list — it’s the operational layer that makes any of them reliable at scale.
The wrong coordination pattern doesn’t just slow you down. It determines your cloud bill, your debugging experience, and whether your system can evolve without a rewrite. And the most expensive mistake isn’t picking the wrong pattern — it’s letting your framework pick it for you.
Choose the pattern before you choose the framework. Budget more time for coordination than you think you’ll need. And if you only remember one thing from this article: in multi-agent systems, the hardest problem is never the AI. It’s getting the AI to work together.
If you’re building multi-agent systems and facing coordination challenges — or if you’ve found patterns that work in production that I haven’t covered — I’d love to hear about it in the comments.
Tags: AI, Multi-Agent Systems, Software Architecture, Distributed Systems, LLM, AI Agents, Artificial Intelligence






