---
title: 'Comparing ADK 2.0 Workflows with LangGraph and Temporal: Architectural Matrix'
date: '2026-12-02T08:31:12+07:00'
description: 'A fair architectural comparison of ADK 2.0 graph workflows, LangGraph, and Temporal across execution model, state, durability, HITL, visualization, and language support.'
author: 'AI Assistant'
image: 'https://blog.redlinesoft.net/images/post/adk-workflows-vs-langgraph-temporal.jpg'
alt: 'Three workflow engines side by side as an architectural comparison matrix'
tags: ['google-adk', 'adk-2-0', 'workflows', 'langgraph', 'temporal', 'architecture']
---

"Should we use ADK, LangGraph, or Temporal?" is the wrong question to answer with a logo comparison. These three systems all draw boxes and arrows on a whiteboard, and all three will run your nodes in order — but they disagree on almost everything underneath: what a workflow *is*, where its state lives, what happens when a process dies at 3 a.m., and how much infrastructure you inherit.

The honest answer is that they are not competitors at the same layer. ADK is an agent framework with graph workflows built in. LangGraph is a low-level orchestration runtime for stateful agents. Temporal is a general-purpose durable execution platform where your "workflow" is ordinary code that must survive anything. Choosing badly means either paying for durability you will never need or discovering at launch that your agent pipeline has no memory across restarts.

This post builds an architectural matrix across the dimensions that actually decide the outcome, then translates it into when-to-pick-which guidance.

## Prerequisites

- Basic familiarity with graph-shaped orchestration (nodes, edges, state)
- Optional: hands-on time with ADK, LangGraph, or Temporal — the matrix assumes none
- No code in this post beyond the tiny comparison snippets; this is a decision guide

## 1. The three contenders, in one paragraph each

**ADK 2.0 workflows.** Google's Agent Development Kit offers four composition styles: [graph-based workflows](https://adk.dev/graphs/) (a declarative `Workflow` of nodes and edges with explicit routing), [dynamic workflows](https://adk.dev/graphs/dynamic/) (orchestration written as plain code), collaborative workflows (a coordinator agent delegating to sub-agents), and prebuilt template agents (sequential / parallel / loop). Nodes can be LLM agents, tools, human-input tasks, or your own functions, and they pass data through `Event` fields (`output`, `message`, `route`, `state`).

**LangGraph.** Per its own docs, LangGraph is a *"low-level orchestration framework and runtime for long-running, stateful agents."* You define graphs of shared state, nodes, and edges, and mix deterministic steps with LLM-driven steps. It deliberately does not prescribe prompts or agent architecture — it provides runtime primitives: persistence (checkpoints), interrupts for human-in-the-loop, memory, and streaming.

**Temporal.** Temporal is an open-source *durable execution* platform. You write a Workflow Definition as ordinary code plus Activities for anything that touches the outside world. The Temporal Service records an Event History for every execution; if a worker dies, another worker replays that history and rebuilds local state to continue. It is not agent-specific — it runs order fulfillment, payments, CI/CD, and AI pipelines with equal indifference.

## 2. The architectural matrix

| Dimension | ADK 2.0 workflows | LangGraph | Temporal |
|---|---|---|---|
| **Execution model** | Declarative node/edge graph (or code-shaped dynamic workflows) driven by an in-process event loop | `StateGraph` of nodes/edges compiled and invoked in-process; explicit control over state and control flow | Workflow code executed by Workers; steps are Activities, timers, and messages |
| **State handling** | Per-node `Event` fields: `output` flows to the successor, `state` persists in the session, `route` drives branching | Shared graph state (e.g. typed state dicts / reducers); nodes read and write it; checkpoints per step | Workflow local variables rebuilt by replaying Event History; durable state is the history itself |
| **Persistence / durability** | Session event history via a `SessionService` (in-memory by default); resumability is opt-in (`ResumabilityConfig(is_resumable=True)`, Python 1.16+) | Checkpointer-backed persistence (resume after failure or pause); thread-scoped and cross-session memory | Durable by default: Event History survives crashes, replays on another worker, retained per namespace |
| **Failure handling** | Per-node `RetryConfig` (attempts, backoff, jitter, exception filters) and per-attempt `timeout`; workflow fails when attempts are exhausted | Node-level error handling plus checkpoint resume; retries are your design | Retry Policies on Activities (default: exponential backoff, unlimited attempts); work moves off crashed workers automatically |
| **Human-in-the-loop** | Human-input nodes in the graph, action confirmations, long-running tools | First-class `interrupt()`: pause, inspect or edit state, then continue | Signals, Queries, and Updates deliver messages into a running Workflow; durable waits |
| **Visualization** | ADK dev web UI with visual builder; graphs are code-first | LangGraph Studio for visual prototyping and inspection alongside the code | Temporal Web UI showing every execution and its Event History; CLI and visibility APIs |
| **Streaming** | Every step is an `Event` streamed from `Runner.run_async`, with `partial` token chunks and `is_final_response()` | Streams tokens, state updates, and other events as the graph runs | Workflow Streams plus Activities emitting progress; history is queryable after the fact |
| **Language support** | Python, TypeScript, Go (graph workflows v2.0); Kotlin experimental; Java in the wider ADK | Python (primary) and a JavaScript/TypeScript counterpart | Go, Java, .NET, Python, TypeScript, PHP, Ruby, Rust — same model in every SDK |
| **What it is not** | Not a durable-execution engine: no cross-process replay of a half-run graph | Not an agent framework: no prompts, tools, or agent primitives built in | Not an agent framework: no LLM abstractions; agents are things you build *on* it |

## 3. Execution model: who decides what runs next?

ADK graphs encode control flow as data. A router node returns `Event(route=...)`, and an edge dictionary maps route values to nodes — `"PAGE": page_node, "LOG": log_node` — with `DEFAULT_ROUTE` as the safety net. Cycles must contain at least one routed edge, and a workflow may have at most one terminal node producing output. The topology is reviewable in a diff.

LangGraph gives you the same graph vocabulary but pushes the decision into your nodes: a node returns a state update, and conditional edges are functions over that state. Control flow is explicit Python or JS, not a dispatch table.

Temporal does not have a graph at all in the ADK/LangGraph sense — your workflow *is* the control flow, written as ordinary code. `if` statements are `if` statements. What makes it a workflow engine is that every step's outcome is recorded, so replay reconstructs the exact branch you took.

**Takeaway:** ADK optimizes for *reviewable topology*, LangGraph for *explicit state-driven control*, Temporal for *code that reads naturally and is reconstructed from history*.

## 4. State and durability: the axis where they truly differ

This is the fault line.

ADK's execution model is an in-process event loop: the `Runner` drives generators, commits each event's `state_delta` through the `SessionService`, then forwards the event. State lives in the session, event history lives in the session, and by default that session service is in-memory. Resumability — replaying completed steps after a crash by invocation ID — exists but is an opt-in configuration, and the docs are candid that resumed tools run *at least once*, so side effects need guarding.

LangGraph sits in the middle: its checkpointer persists state after every step, so a crashed or interrupted run resumes from the last checkpoint, and interrupts let you stop a graph indefinitely (waiting on a human) and continue later. That is real durability for agent-shaped workloads, scoped to a graph thread rather than to an infrastructure-wide event log.

Temporal's durability is the product. Event History is the source of truth; on failure another worker replays it — not from a snapshot, but by re-running workflow code against recorded events, reusing Activity results rather than redoing them. Workflows can run for days, weeks, or years. The price is the determinism contract: no unrecorded randomness, no wall-clock reads, no network calls outside Activities.

**Takeaway:** if losing a run on process restart is unacceptable, ADK requires you to bring a persistent session service and accept at-least-once semantics; LangGraph brings a checkpointer; Temporal makes durability the default and charges you in discipline instead.

## 5. HITL, visualization, and streaming

For human-in-the-loop, all three have real answers and they look different. ADK pauses the graph on a human-input node — the graph edge itself waits for a person. LangGraph's `interrupt()` freezes execution and lets you inspect or mutate state before resuming. Temporal delivers Signals or Updates into a running workflow that may be waiting for days, durably.

On visualization, ADK and LangGraph are code-first with a UI attached (ADK's dev web UI and visual builder; LangGraph Studio). Temporal's Web UI is a production operations tool: every execution, its Event History, and where it is stuck. Different jobs — prototyping versus incident response.

Streaming favors the agent-native tools: ADK streams every `Event` from `run_async` including partial token chunks; LangGraph streams tokens, state updates, and custom events. Temporal is not built for token streaming — it is built for knowing exactly what step 4,392 did last Tuesday.

## 6. When to pick which

**Pick ADK 2.0 workflows when:**
- You are building an *agent application* and want tools, sessions, sub-agents, A2A, evaluations, and graph control in one framework
- You value a declarative, code-reviewable routing table with `DEFAULT_ROUTE` fail-safes
- You are already on Google Cloud and want Agent Runtime, Cloud Run, or GKE as the deployment path
- Runs are request-scoped (minutes, not months) and session-backed persistence is enough

**Pick LangGraph when:**
- You want low-level, explicit control over state and control flow without adopting a full agent framework
- Checkpoint-based resume and `interrupt()`-driven human-in-the-loop are the core requirements
- You are invested in the LangChain ecosystem (LangSmith tracing, evaluation) but want the orchestration layer kept separate from prompts and models

**Pick Temporal when:**
- The workflow is *business-critical infrastructure* that must survive crashes, deploys, and dependency outages — payments, order fulfillment, provisioning, long-running pipelines
- Executions span many services and languages, or must outlive any single process for days or years
- You need durable timers, retries with policy, sagas, and an operations UI as first-class features
- Agents are components inside a larger system, not the whole system

**And be honest about the overlaps:** Temporal can orchestrate ADK or LangGraph agents as Activities when you need durability around them. LangGraph can be your agent layer with Temporal underneath. ADK graphs, conversely, are not a Temporal replacement — there is no cross-process replay of a half-finished graph, and pretending otherwise is how teams get paged. The matrix above is not a ranking; it is a map of which layer each system owns.

## 7. Decision checklist

- [ ] Does a lost process mean lost work? If yes, durability is the first requirement, not a later optimization.
- [ ] Is the graph's topology something non-developers must review? Favor declarative routing.
- [ ] Will executions outlive a single request? If yes, you are in Temporal's territory.
- [ ] Do you need token streaming and per-step events to a UI? Favor the agent-native runtimes.
- [ ] Is the "workflow" actually an agent product (tools, prompts, evals) or infrastructure? Framework versus platform.
- [ ] Which languages must the same workflow run in? Temporal: eight. LangGraph: Python/JS. ADK: Python/TS/Go first.
- [ ] Who operates the durability layer — you (checkpointer/session service) or a platform (Temporal Service/Cloud)?

## Conclusion

ADK 2.0, LangGraph, and Temporal all give you nodes, edges, and a story about reliability — but they optimize for different bets. ADK bets that agent workflows are best expressed as reviewable graphs inside an agent framework. LangGraph bets on explicit state and checkpointable control flow as a low-level runtime. Temporal bets that everything important should be ordinary code that never loses progress, at the cost of a determinism contract and an infrastructure footprint.

Match the bet to your failure modes, not to the hype cycle: agent-shaped, request-scoped work fits ADK or LangGraph; anything whose failure costs money or trust deserves a hard look at durable execution.

## References

- https://adk.dev/workflows/
- https://adk.dev/graphs/
- https://adk.dev/runtime/event-loop/
- https://adk.dev/runtime/resume/
- https://docs.langchain.com/oss/python/langgraph/overview
- https://docs.temporal.io/workflows
- https://docs.temporal.io/durable-execution
- https://temporal.io/
- https://github.com/google/adk-python
