QuestionQ27

VerifiedEvaluating and deploying agentic workflows

You built a document processing pipeline in which an extraction agent and a scoring agent exchange records through the Agent2Agent (A2A) protocol. The agents were written with Agent Development Kit (ADK) and deployed as two separate Agent Runtime agents, and neither agent is called from outside the pipeline.

You find that each record takes 400 milliseconds longer than expected to process. Your profiling tool attributes the extra time to serialization and network calls between the two agents. You want to minimize processing time while ensuring that each agent retains its current logic and continues to handle one record per invocation.

What should you do?

Explanation

Deploying the agents together and using a local subagent removes the inter-agent A2A network calls and their associated protocol serialization overhead. The agents can retain their distinct processing logic and operate on one record per invocation, without requiring independent external access. (adk.dev)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!