
Lesson 5: Coordination Strategies Across Agents
Master the communication protocols of multi-agent systems. Learn the difference between centralized orchestration, peer-to-peer collaboration, and blackboard architectures for distributed AI.
Module 3: Agentic Architecture and Orchestration
Lesson 5: Coordination Strategies Across Agents
Once you have a team of agents (from Lessons 1-4), the next architectural hurdle is Communication. How do they share what they've learned? How do they "Hand off" a half-finished task?
In this lesson, we explore the three primary coordination strategies: Centralized, Peer-to-Peer, and Blackboard.
1. Centralized Coordination (The Hub and Spoke)
This is the "Supervisor-Worker" model we studied in Lesson 3. All communication passes through the Hub.
Execution:
- Agent A finishes.
- Agent A sends result to Supervisor.
- Supervisor sends result + instructions to Agent B.
Best For:
Environments where Control is more important than speed. If you need a manual human review step, this is the only viable model.
2. Peer-to-Peer (The Relay Race)
In a P2P model, agents speak to each other directly.
Execution:
- Agent A finishes.
- Agent A determines Agent B is the next step.
- Agent A "Triggers" Agent B and passes the token.
Best For:
Linear, high-efficiency pipelines (like a factory line). It is faster than centralized because there is no "Managerial Turn."
- Trade-off: If Agent A makes a mistake, Agent B might not have the "Context" to recognize it, whereas a Supervisor would.
3. Blackboard Architecture (The Shared State)
This is the most "Modern" agentic pattern. Agents do not talk to each other. Instead, they all read from and write to a Shared Global State (The Blackboard).
Execution:
- Agent A writes its findings to the "Database."
- Agent B observes the new data on the "Database" and realizes it is now their turn to act.
Best For:
Highly complex, non-linear problems like Scientific Research or Code Auditing.
4. Visualizing the Strategies
graph TD
subgraph Centralized
C([Hub]) --- S1[Agent 1]
C --- S2[Agent 2]
end
subgraph P2P
P1[Agent 1] --> P2[Agent 2] --> P3[Agent 3]
end
subgraph Blackboard
B[(Shared State)]
B <--> B1[Agent 1]
B <--> B2[Agent 2]
end
5. Architectural Trap: "The Coordination Tangle"
When agents talk too much, you hit a "Synchronization Deadlock."
- Example: Agent A is waiting for Agent B, but Agent B thinks Agent A is still working.
- The Architect's Fix: Implement a Global Status Flag in your state object (Module 2, Lesson 3) that clearly shows who "Owns" the current turn.
6. Summary
- Centralized: Maximum control, higher latency.
- P2P: Maximum speed, lower observability.
- Blackboard: Maximum flexibility for non-linear tasks.
In the final lesson of this module, we will look at the ultimate architectural balancing act: Tradeoffs: Autonomy vs. Control.
Interactive Quiz
- What is a "Blackboard" in AI architecture?
- Why is Centralized coordination preferred for financial systems?
- What is a "Synchronization Deadlock" in a multi-agent system?
- Setup a hypothetical workflow for "Writing a Book." Which coordination strategy would you choose for a team of 3 agents (Researcher, Draft Writer, Editor)? Why?
Reference Video: