Every agent turn reads what the agent already knows and writes what it learned. Whether that read crosses a network sets the floor on how fast a turn can finish.
Akka holds agent state in the runtime that executes the agent, replicated across nodes. Reads take single-digit milliseconds and no separate store has to be provisioned, scaled or failed over.
An agent turn is a sequence of dependent steps. The agent reads context, calls a model, and writes what changed, often several times before producing an answer. Every read and write sits on the path to the response, so their latency multiplies by the number of steps.
Placing that state in an external store adds two network round trips to every turn, and adds a second system with its own capacity planning, failover, and backup schedule. Holding it in the runtime removes the hop and folds durability into replication that already exists for the agent.
A user-facing agent has a total budget before the interaction feels slow. The model call consumes most of it, so the remainder decides how many steps the agent can take before the response arrives.
Swiggy cut prediction latency from 144ms to 71ms while holding 5,000 predictions a second on a single model, and the reduction came from removing repeated work on the path.
Durable state is written to an event journal as it changes and replicated across nodes, so a restart replays it.
State is sharded across the cluster, so capacity grows with the cluster. A single agent instance holds only its own state.
Retrieval from a vector store is a tool call for knowledge the agent looks up. The state in this guide is what the agent itself accumulated, which is read and written on every turn.
State is replicated active-active, so a region loss recovers in under a minute with no committed writes lost.