AI 推理正迫使云原生架构重回有状态设计
作者指出,AI 推理模型与多轮智能体工作流天然有状态,每次交互都携带上下文窗口与昂贵的 KV-cache。传统无状态容器的轮询负载均衡会丢弃缓存,迫使 GPU 重复计算已处理 token,形成纯经济损失与缓存抖动。网络架构的核心问题正从搬运数据包转向在传输延迟与 GPU 重算边际成本之间做经济性分配。
报道正文
My drive home from work is always spent in total silence. The monotony of Route 101 (it's not a flex) has an uncanny way of clearing cognitive noise. Today, somewhere in that quiet stretch of highway, reflecting on my work in the Kubernetes ecosystem, it struck me just how completely our industry is reinventing itself.
For 15 years, cloud computing was worshiping a statelessness as an absolute deity. Build stateless containers, spin them up dynamically, let them die without consequence. And this architecture was simple, resilient, and economically predictable.
And then AI happened, violently dismantling prior art. Reasoning models and multi-turn agentic workflows are inherently stateful. Every interaction carries a prompt history, a context window, and an expensive KV-cache. When you route a prompt to an arbitrary node using standard round-robin load balancing, you discard that cache. You force saturated GPUs to recompute tokens that were already processed milliseconds ago.
In economics, we call this pure deadweight loss. In distributed systems, it's referred as cache thrashing. The architectural frontier of networking is no longer about blindly moving packets from point A to point B. It is an economic allocation problem: balancing network transport latency against the marginal cost of GPU recomputation.
We spent a decade decoupling state from compute. Now the laws of physics and economics are forcing us to design intelligent proxies to put them back in the same room.