ADK for Java

ADK for Java

ADK for Java — core module, tool integration, A2A transport, evaluation, deployment.

563Articles
563Topics covered
Articles in this category

All 34 articles, sorted alphabetically

Advertisement
ARTICLE · 01

Production Agent Architecture: The Full Stack in Depth

A 2500-word walkthrough of a production agent runtime: UI, auth, planner, memory, tool router, policy, observability, and the tool ecosystem underneat…

Read article →
ARTICLE · 02

Request hedging for ADK-Java agents

Deep-dive on request hedging (backup requests) in an ADK-Java agent: issue a duplicate to an independent replica when the primary misses a delay tuned…

Read article →
ARTICLE · 03

ADK Java artifacts

Deep-dive on the ADK Java artifact service: the append-only versioned save/load contract, session vs user: namespaces, ToolContext and CallbackContext…

Read article →
ARTICLE · 04

Authorization at the Agent Boundary

Enforce access control before the LLM runs: middleware interceptors, policy-as-config, deny-by-default, and the boundary&a…

Read article →
ARTICLE · 05

ADK Java bulkhead isolation architecture

Deep-dive on bulkhead isolation in ADK Java agents: dependency-scoped thread-pool and semaphore compartments, virtual-thread economics, composition wi…

Read article →
ARTICLE · 06

ADK Java callback architecture

Deep-dive on ADK Java callbacks: beforeAgent/afterAgent, beforeModel/afterModel, beforeTool/afterTool, short-circuit semantics, callback chains, injec…

Read article →
ARTICLE · 07

ADK Java circuit breaker architecture

Deep-dive on the circuit breaker pattern in an ADK Java agent: a three-state machine (CLOSED, OPEN, HALF-OPEN) around one dependency, a sliding window…

Read article →
ARTICLE · 08

ADK Java Core Module

What ships in the ADK Java core module and how the pieces compose: the agent abstraction and lifecycle, Runner and session state, the event stream, th…

Read article →
ARTICLE · 09

ADK-Java dead-letter queue architecture

Deep-dive on dead-letter queues for ADK-Java agent pipelines: bounded retries and the attempt counter, the DLQ router and failure metadata, head-of-li…

Read article →
ARTICLE · 10

ADK Java deployment -- packaging, sessions, virtual threads, JVM tuning

Deep-dive on deploying ADK Java agents: JAR/container packaging, Cloud Run/GKE/VM targets, externalized config and secrets, durable session backends f…

Read article →
ARTICLE · 11

Environment + Configuration Management

ADK Java environment and configuration management: 12-factor config, env-driven builders, typed config helpers, profiles, secrets, validation, externa…

Read article →
ARTICLE · 12

Agent governance architecture

Governance plane for Java-based agent runtimes: policy engine, approval broker, guardrail LLM, tool registry, session store, and a review loop.

Read article →
ARTICLE · 13

ADK-Java Graceful Shutdown: Architecture Deep-Dive

How an agent runtime drains cleanly on SIGTERM — readiness propagation, admission gating, drain deadlines under the grace period, checkpointing long t…

Read article →
ARTICLE · 14

Idempotency architecture

Deep-dive on idempotency for side-effecting agent tool calls in a Java ADK service: how to retry aggressively without double-charging, double-sending,…

Read article →
ARTICLE · 15

ADK Java MemoryService architecture

Deep-dive on ADK Java's long-term memory: the session-versus-MemoryService split, addSessionT…

Read article →
ARTICLE · 16

ADK Java observability architecture

Deep-dive on observing ADK Java agents: span trees rooted at the Runner, before/after callbacks as telemetry taps, streaming token accounting, session…

Read article →
ARTICLE · 17

adk-java transactional outbox architecture

Deep-dive on the transactional outbox pattern for Java ADK agents: committing state and an outbox row in one JDBC transaction to kill the dual-write p…

Read article →
ARTICLE · 18

ADK-Java planner -- decomposing a goal into steps

Deep-dive on the ADK-Java planner: the complex-goal need, decomposition into a plan, the executor, plan-then-execute vs reacting per step, replanning …

Read article →
ARTICLE · 19

ADK-Java RAG grounding -- answering from your data

Deep-dive on ADK-Java RAG grounding: the grounding need, the retrieval tool, grounding answers in retrieved context, citations, vector search, chunkin…

Read article →
ARTICLE · 20

ADK-Java rate limiting architecture

Deep-dive on rate limiting in the Java Agent Development Kit: the token-bucket algorithm shaping bursty model and tool calls under hard provider quota…

Read article →
ARTICLE · 21

Agent Router Architecture in Depth

A 2500-word walkthrough of agent router architecture: intent classifier, model pool, budgets, escalation, A/B evaluation.

Read article →
ARTICLE · 22

ADK Java Runtime in Depth: What Happens From Building the Agent Tree to the First Event, and How to Boot Safely

The real boot sequence of a Google ADK for Java application: building LlmAgent trees and FunctionTools, choosing session, artifact and memory services…

Read article →
ARTICLE · 23

ADK Java Runtime

Every phase of the ADK Java runtime's execution loop, from message-in to response-out, with t…

Read article →
ARTICLE · 24

Model Call Orchestration Inside the ADK Java Runtime: One LLM Call from Request Assembly to Event, with Code

How the Agent Development Kit for Java turns session state into a model call and back: BaseLlmFlow's request processors, before/after/on-…

Read article →
ARTICLE · 25

Session Context in ADK Java, in Depth: Sessions, State Prefixes, InvocationContext and ToolContext, and What Survives a Turn

How session context really works in Google's ADK for Java: the BaseSessionService contract, State as a delta-recording map, app:, user:, temp: an…

Read article →
ARTICLE · 26

Tool Dispatch Mechanics in the ADK Java Runtime

What the ADK Java runtime does between the model asking for a tool and the result landing back in the session: name resolution, argument binding, fan-…

Read article →
ARTICLE · 27

ADK-Java safety -- guardrails around agent behavior

Deep-dive on ADK-Java agent safety: the guardrails need, callbacks (before/after model and tool calls) as interception points, input and output guardr…

Read article →
ARTICLE · 28

ADK Java + Spring

Deep-dive on integrating ADK Java with Spring Boot: agents and tools as DI-managed beans, tools as existing service beans, @ConfigurationProperties co…

Read article →
ARTICLE · 29

Streaming agent architecture

Deep-dive on Java-based streaming agent runtime: SSE, async loop, model + tool events, interrupt, resume from checkpoint, and backpressure.

Read article →
ARTICLE · 30

Timing Out ADK Java Tools Safely

How ADK Java enforces tool timeouts at runtime, how tool code detects and reacts to interruption, cleanup patterns with try-with-resources, graceful d…

Read article →
ARTICLE · 31

Java agent tools architecture

Deep-dive on Java agent tool architecture: declaration, JSON schema, registry, executor, timeouts, idempotency, streaming, governance.

Read article →
ARTICLE · 32

ADK Java Tools

How to define tools in ADK Java, the schema format for LLM function calling, and best practices for tool design.

Read article →
ARTICLE · 33

Virtual threads for Java agents

Deep-dive on running a Java agent framework on virtual threads: the mount/unmount dance at blocking LLM and tool calls, the small carrier pool, struct…

Read article →
ARTICLE · 34

Workflow orchestration architecture

Deep-dive on Java workflow orchestration: state machine, persistence, retries, timers, signals, compensation, versioning, testing.

Read article →