---
title: "Comment by Mihai_LeanZero on \"How to Diagnose and Fix AI Inference Latency on Kubernetes\" | Hashnode"
description: "The tension in stage one is worth naming directly: routing for prefix-cache locality and routing for load balance pull in opposite directions once a workload ha"
url: "https://hashnode.com/posts/how-to-diagnose-and-fix-ai-inference-latency-on-kubernetes/6abca2f9f944d026311c7f7b/comment/6abcd70fb7ba1552c694d8d0"
---

[Discussion](https://hashnode.com/posts/how-to-diagnose-and-fix-ai-inference-latency-on-kubernetes/6abca2f9f944d026311c7f7b)

Comment [How to Diagnose and Fix AI Inference Latency on Kubernetes](https://hashnode.com/posts/how-to-diagnose-and-fix-ai-inference-latency-on-kubernetes/6abca2f9f944d026311c7f7b)

[Mihai\_LeanZero](https://hashnode.com/@mihaileanzero)

[Sep 30](https://hashnode.com/posts/how-to-diagnose-and-fix-ai-inference-latency-on-kubernetes/6abca2f9f944d026311c7f7b/comment/6abcd70fb7ba1552c694d8d0)

The tension in stage one is worth naming directly: routing for prefix-cache locality and routing for load balance pull in opposite directions once a workload has both very short and very long sessions. If you pin a conversation to the replica that holds its KV cache prefix, a long-running heavy session keeps landing on the same pod and grows its queue exactly the way the round-robin section describes, except now it's a deliberate design choice instead of an accident. Gateway API Inference Extension and llm-d are named as the fix for the guessing load balancer, do they actually resolve that tradeoff, or do they just make the tradeoff visible and require someone to set a policy for when cache locality loses to queue depth?
