Microsoft Three-Layer LLM Routing Architecture for AI Agents on AKS

Claudio Masolo ยท rss ยท 2026-07-29 Reader ๐Ÿ–ฅ๏ธ

AI Unit EconomicsCapability Provisioning (right-sizing to the task)Compute & Energy InfrastructureInference OptimizationModel Routing
Because agentic workloads generate large volumes of small, heterogeneous-difficulty LLM calls that a single router or load balancer cannot handle well, production routing on Kubernetes should be decomposed into three independent, composable layers โ€” semantic model selection (RouteLLM), request governance (agentgateway), and live GPU-state-aware placement (the Gateway API Inference Extension's Endpoint Picker) โ€” each solving exactly one of the three distinct signals (which model, how the call is managed, which replica) rather than one component trying to do all three.

practical ยท expository โ€” A reporting/summary piece (InfoQ news format) describing Microsoft's reference architecture. It is practical because the whole point is prescriptive โ€” how teams should structure production routing infrastructure โ€” but the text itself is expository (describing an existing design) rather than argumentative in its own voice; the argumentative content (why decompose into three layers) is inherited from the source blog post being summarized.

Structure

PartRole
Problem framing: agent loops fire hundreds of calls per task, many trivial, and naive round-robin balancing is blind to both semantic difficulty and live GPU statecontext / motivation
The three-layer architecture: RouteLLM (semantic routing) + agentgateway (AI proxy / policy) + Gateway API Inference Extension's Endpoint Picker (GPU-aware placement), unified behind one OpenAI-compatible endpointcore exposition of the design
Wiring detail: KAITO provisions GPU node pools and runs vLLM; strong path goes to Azure OpenAI, weak path to KAITO pods via a service backend with inferenceRouting/passthrough; Prometheus/Grafana observe both routing and GPU metricsevidence (implementation detail)
RouteLLM's benchmark numbers (95% of GPT-4's MT-Bench quality at ~26% escalation, up to 85% cost savings) and Microsoft's caveat that this escalation threshold is specific to the trained model pair and must be recalibrated for other pairs; plus the note that prompt caching complicates the true cost of a 'strong' callqualifying nuance
Author's explicit warning that the open-source pieces (Inference Extension, agentgateway) are young and pre-v1, with CRD fields still movingcaveat
Managed-vs-self-hosted split: Azure Foundry model router is a managed version of RouteLLM's semantic layer, but there is no managed equivalent for the Endpoint Picker's GPU-aware placement โ€” it must run in-cluster regardless of gateway choiceconclusion (about the shape of the market)
Adoption-in-slices guidance: pure governance needs only agentgateway; self-hosting one model class needs KAITO + Inference Extension without semantic routing; RouteLLM is worth adding only once there's a real strong/weak price gap and enough easy trafficconclusion / recommendation

Key terms

Propositions

Arguments

Production agent routing on Kubernetes should be built as three independently composable layers rather than as one monolithic router or load balancer. strength: medium
Explicit premises:
Implicit premises:
Inferences:

Narratives

Questions addressed

Gaps

Closes gaps elsewhere

Related documents