Should Multi-Agent Systems Pass Work Through Kafka Topics Instead of A2A?
Topics, A2A and MCP solve different handoff problems, and data agents usually need more than one of them
Yes, a multi-agent system can pass work through Kafka topics instead of A2A, and The New Stack reports that Confluent's real-time agent design does exactly that. But topics and A2A are not drop-in substitutes. A topic is a durable, replayable log that decouples producers from consumers. A2A is a request/response protocol between agents that know about each other. The right choice depends on whether a handoff needs replay and fan-out, or a negotiated conversation with a named peer.
Key Takeaways
- •Kafka topics fit handoffs that need durability, replay, ordering within a key, and several independent consumers of the same event.
- •A2A fits handoffs where one agent delegates a task to a specific peer and expects status updates and a result back.
- •MCP is a third layer: it connects an agent to tools and data, not to other agents, so it does not compete with either choice.
- •Most production data-agent systems end up with both: events for state changes, direct calls for delegated work.
- •Whatever carries the handoff, write permissions and an audit trail have to be enforced outside the message transport.
What Each Handoff Mechanism Actually Does
A Kafka topic is an append-only log. A producer writes an event and does not know who reads it. Consumers track their own position and can rewind. That gives you three properties that agent handoffs often want: a record of what was handed off, the ability to replay it after a failure, and several consumers acting on the same event without the producer changing. Retention is configurable; the Apache Kafka documentation lists a default of 168 hours (seven days) for log.retention.hours.
A2A, the agent-to-agent protocol, works at a different level. The A2A project on GitHub describes it as an open protocol for communication between agents built on different frameworks. One agent discovers another, sends it a task, and receives progress and a result. The relationship is point to point. The caller knows who it is delegating to and waits, or subscribes, for that specific peer to finish.
MCP sits below both. The Model Context Protocol specification (the 2025-06-18 revision) defines how a client connects to servers that expose tools, resources and prompts. An agent uses MCP to query a warehouse or read a catalog. It does not use MCP to hand work to another agent. Keeping those three jobs separate is the first step to choosing well.
Where Kafka Topics Win for Agent Handoffs
Topics win when the handoff is really a state change that several parties care about. Consider a schema change on a source table. A quality agent wants to re-check expectations, a governance agent wants to re-evaluate access policy, and a pipeline agent wants to decide whether a job needs to pause. With A2A, the originating agent has to know all three and call each one. With a topic, it publishes one event and each consumer reacts independently.
The second win is recovery. If a consumer agent crashes halfway through a handoff, a log lets it resume from its last committed offset. If a bad model version produced a wrong decision, you can replay the same events through a fixed version and compare outputs. Direct calls do not give you that unless you build a separate store of every request, which is effectively rebuilding a log.
The third win is load shaping. Agents are slow and uneven: one handoff may take two seconds and the next ten minutes. A topic absorbs bursts, and you scale consumers by partition. Ordering is guaranteed only within a partition, so choose the key deliberately. For data work, a table name or pipeline id is usually the right key, because it keeps all events about one asset in order.
Where A2A Is the Better Fit
A2A wins when the handoff is a delegated task with a clear owner. If an orchestrating agent needs a specialist to produce a root-cause summary and wait for it, a request/response shape is the honest model. The caller wants one answer from one peer, with status along the way. Modeling that as two topics, a request topic and a reply topic, works but adds correlation ids, timeouts and cleanup that A2A already defines.
A2A also helps at organizational boundaries. When the peer agent is built by another team or runs on another framework, you want a published contract, capability discovery and a standard task lifecycle. Sharing a Kafka cluster across those boundaries means sharing credentials, topic naming and schema governance, which is a heavier commitment than exposing an endpoint.
Finally, interactive work favors direct calls. If a human is waiting on the answer to a question in a terminal, the latency and complexity of a log are rarely worth it. The log earns its keep for the asynchronous, high-fan-out, must-not-lose-it parts of the system.
Five Steps to Choose a Handoff Protocol
We use the same five questions whenever we design a handoff between agents. Answer them in order and the choice usually falls out. None of them require picking a product first.
- •Step 1, count the consumers: one named peer points to A2A; several independent reactors point to a topic.
- •Step 2, ask whether you need replay: if you must re-run a decision after a fix or an audit, you need a log.
- •Step 3, check who waits: a caller blocked on a result wants request/response; fire-and-forget work wants an event.
- •Step 4, look at the trust boundary: across teams or vendors, prefer a published agent contract over a shared cluster.
- •Step 5, decide where the policy check lives: put authorization and write gates in a layer both transports pass through.
If steps 1 and 2 say topic but step 3 says someone is waiting, you have a hybrid. Publish the state change as an event, and let the orchestrating agent track the outcome through a reply event or a direct call to the owner. That is not indecision; it is two different jobs.
What Event-Driven Orchestration Costs You
A log is not free. You take on a cluster or a managed service, schema evolution for event payloads, consumer-group management and monitoring for lag. Agent events also tend to carry large, loosely structured payloads such as model output, so teams are tempted to skip schemas. That works until two agents disagree about what a field means. Treat event contracts the way you treat table contracts: versioned and checked in CI.
Delivery semantics need thought as well. At-least-once delivery means an agent may see the same handoff twice, so its actions have to be idempotent. An agent that opens a ticket or alters a table on every delivery will do it twice. Make each handoff carry an idempotency key and have the consumer record what it has already done.
Debugging changes shape too. A direct call has a stack; an event chain has a trace you must assemble. Propagate a correlation id through every event and every tool call, so that one incident can be followed from the first alert to the last action.
How This Plays Out With Data Agents
Data work has a natural split. Observations such as freshness changes, schema drift, volume anomalies and access changes are events: many agents care, and replay matters. Remediation steps such as fixing a model, pausing a job or revoking a grant are delegated tasks with an owner and an approval. In our design, the Orchestration Agent coordinates the swarm and delegates to the others, and the Streaming Agent covers Kafka-style topic governance, schema registry and exactly-once monitoring for the streams your data already runs on.
Every Data Workers agent is an MCP server, so tools and context reach the agent over MCP regardless of how work is handed between agents. That matters because the handoff transport can change without touching the tool layer. You can run a swarm on direct calls today and move noisy state changes onto a topic later.
What should not change is control. Writes pass through an approval gate, every action lands in a tamper-evident audit trail, and an autonomy setting decides per domain how much an agent may do without a human. A transport that is fast and durable but bypasses those checks is the wrong place to economize.
Frequently Asked Questions
Does Kafka replace A2A?
No. Kafka can carry handoffs that a design would otherwise send over A2A, and the reported Confluent approach does so, but the two differ in shape. A2A defines discovery, a task lifecycle and a contract between named agents. Kafka gives you a durable log and leaves the conversation semantics to you. Choose topics when you need fan-out and replay, and A2A when one peer owns a delegated task.
Can I use MCP for agent-to-agent handoffs?
You can expose one agent as an MCP server so another calls it as a tool, and that works for simple delegation. MCP is designed for connecting a model to tools and data, so it gives you no long-running task lifecycle or event fan-out. Use it for tool access, and use a topic or A2A for the handoff itself.
When does event-driven orchestration make sense for data agents?
It makes sense when several agents react to the same state change, when you must replay decisions for audit or after a fix, and when work arrives in bursts. It makes less sense for a single interactive question with one answer. Start with direct calls, and move to topics where fan-out, replay or load shaping become real problems.
How do I stop an event-driven swarm from acting twice on the same event?
Give every handoff an idempotency key, have each consumer record what it has processed, and make write actions safe to repeat. Pair that with a correlation id for tracing and a write gate that checks approvals before any change reaches production systems.