Lesson 1 of 4 Multi-Agent Orchestration Patterns and Frameworks

Choosing a Multi-Agent Orchestration Pattern

This lesson describes the five orchestration patterns in the skills outline, which define how control and data move between agents. Choosing the right pattern is the most consequential implementation decision, because it sets latency, cost, reliability and how easy the system is to debug.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish the sequential and parallel patterns.
  • Distinguish hub-and-spoke from orchestrator-subagent.
  • Describe peer-to-peer patterns such as handoff and group chat.
  • Choose a pattern for a scenario.

Sequential and parallel

In the sequential pattern, agents form a pipeline: each processes the previous agent's output and passes its own to the next, as in draft, compliance review, translation and formatting. It is predictable and easy to trace, but total latency is the sum of all steps and an early error propagates. In the parallel (concurrent) pattern, several agents work at the same time on the same input or on independent subtasks, and an aggregator combines the results, as when market, legal and technical analysts assess a proposal. Latency is set by the slowest agent, but tokens are spent by all of them and aggregation must resolve conflicts.

The following diagram contrasts the two patterns.

Sequential compared with parallel orchestration. In the sequential pattern, agents form a pipeline in which each processes the previous one's output; it is predictable and easy to trace, but latency is the sum of the steps and an early error propagates. In the parallel pattern, agents work at the same time and an aggregator combines their results; latency is set by the slowest agent, but every agent spends tokens and conflicts must be resolved.
Sequential is predictable; parallel is faster but costlier.
Fill in the number

Latency of sequential and parallel patterns

Exam skills 2.4.1

Four agents take 6, 9, 4 and 11 seconds. Work out the latency of each pattern, ignoring overhead.

Log in to try this activity Interactive activities are free with an account.

Hub-and-spoke and orchestrator-subagent

In hub-and-spoke, a central hub (a router agent or deterministic classifier) receives every request and dispatches it to one or more specialist spokes, and results flow back through the hub. It centralizes routing, policy and logging, but the hub can become a bottleneck and a single point of failure. In orchestrator-subagent, a planning agent decomposes an open-ended task into subtasks at run time, delegates each to a subagent, tracks progress in a plan or ledger, re-plans when results are unexpected and integrates the final answer. Agent Framework implements this as the Magentic orchestration, in which a manager maintains a task ledger and selects which agent acts next.

The following diagram contrasts fixed routing with run-time planning.

Hub-and-spoke compared with orchestrator-subagent. In hub-and-spoke, a central hub, a router agent or classifier, receives every request and dispatches it to specialist spokes; routing, policy and logging are centralized, but the hub can become a bottleneck. In orchestrator-subagent, a planning agent decomposes an open-ended task at run time, delegates subtasks, tracks progress in a ledger and re-plans when results are unexpected, as in Agent Framework's Magentic orchestration.
Choose run-time planning only for open-ended tasks.
True or false

Hubs and orchestrators

Exam skills 2.4.1

Check how hub-and-spoke and orchestrator-subagent patterns behave.

Log in to try this activity Interactive activities are free with an account.

Peer-to-peer

In peer-to-peer patterns, agents interact directly without a central controller. In handoff, the active agent transfers the conversation to another agent that is better suited, and the new agent continues with the user. In group chat, agents contribute to a shared conversation, with a turn-taking policy or manager selecting the next speaker; this suits debate, critique and brainstorming. Peer-to-peer patterns are flexible but harder to bound, so they need limits on rounds and hand-offs.

The following table summarizes how to choose a pattern.

PatternShape of the problemMain risk
SequentialFixed stages that depend on each otherLatency adds up; early errors propagate
ParallelIndependent subtasks or multiple perspectivesToken cost, conflicting results, rate limits
Hub-and-spokeRoute each request to the right specialistHub bottleneck
Orchestrator-subagentOpen-ended task with an unknown planCost and unpredictability; needs budgets
Peer-to-peer (handoff, group chat)Conversation moves between experts; debatePing-pong hand-offs, unbounded rounds
Sort into groups

Which orchestration pattern?

Exam skills 2.4.1

Identify the orchestration pattern each design uses.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing a pattern

A consultancy wants an assistant that answers questions such as "Assess the risks of entering the Brazilian solar market". The steps differ each time: some questions need regulatory research, some financial modelling, some competitor analysis, in an order that depends on what is found.

The plan is not known in advance and depends on intermediate findings, which fits orchestrator-subagent (Magentic): a planner delegates to research, finance and competitor subagents and re-plans as results arrive, within token and round limits. A sequential pipeline would force every step on every question, and a parallel fan-out to all specialists would waste tokens on irrelevant analyses.

Check yourself

Which pattern suits work whose plan is not known in advance?

Show answer

Orchestrator-subagent (Magentic), with budgets, so the orchestrator plans and delegates as it learns more.

Exam Tips

Remember for the exam

  • Dependent stages: sequential. Independent work: parallel. Routing: hub-and-spoke.
  • Unknown plan: orchestrator-subagent (Magentic) with budgets.
  • Handoff and group chat are peer-to-peer; cap rounds and hand-offs.