Swift Death of Statelessness bexx.io · 12 points · 2 comments · HN thread TL;DR ...

@best

Swift Death of Statelessness bexx.io · 12 points · 2 comments · HN thread

TL;DR A short essay by a Kubernetes engineer argues that AI workloads, especially reasoning models and multi-turn agents, are stateful and break the cloud's long-standing stateless design. Round-robin load balancing discards the KV-cache, forcing GPUs to recompute tokens, so routing becomes an economic problem of balancing network latency against GPU recomputation cost.

  • For about 15 years cloud architecture favored stateless containers that could be spun up and killed without consequence.
  • Reasoning models and multi-turn agentic workflows carry prompt history, context windows and a KV-cache, so they are inherently stateful.
  • Standard round-robin load balancing sends a request to an arbitrary node, discarding the cache and forcing saturated GPUs to recompute already-processed tokens.
  • The author frames this wasted recomputation as deadweight loss and calls the problem cache thrashing.
  • Networking routing is becoming an allocation problem: network latency versus the marginal cost of GPU recomputation.
  • The proposed response is intelligent proxies that route requests back to the node holding their state.

Discussion The thread is small, with only two top-level comments, and is more skeptical than celebratory. One commenter argues the earlier cloud model was never truly stateless, since state was only pushed behind slow interfaces like SQL databases or remote storage APIs. The other asks whether cross-machine cache sharing already exists and suggests the cache may need to live on the same machine because of latency.

  • Earlier cloud designs were never truly stateless (some): Commenter ahartmetz says state was merely pushed behind slow interfaces such as SQL or remote storage APIs. They describe this as a heavy-handed way to enforce discipline that enables scaling while costing performance.
  • Question whether shared KV-cache solutions already exist (some): Commenter zelphirkalt asks if there are existing ways to share caches between machines. They suggest that cross-machine latency may be too high for current AI use cases, so the cache might need to be on the same machine.

#kubernetes #llmInference #kvCache #statelessness #cloudComputing