Skip to main content
AI & DevOps · Inference

LLM inference serving, in reading order

The articles on this site about serving open-weight models yourself, arranged as one path: from a local server on a laptop to disaggregated serving on Kubernetes, and on to what each token costs.

By Matthews WongReviewed on

Key takeaway

This path follows a self-hosted model from engine to bill. It starts with the engines, vLLM and SGLang, moves to disaggregated prefill and decode and shared KV caches, then to the Kubernetes layer of llm-d, KServe, Dynamo and the Gateway API Inference Extension with the routers in front of it, and ends with autoscaling on queue depth and measuring cost per token.

Reading path · 25 articles

Read in this order

Each stage builds on the one before. If you already know a stage, skip ahead; the line under each title says what that article adds.

Stages 3 / 4

Serving on Kubernetes, and the gateway in front

The Kubernetes-native stacks that schedule and route model traffic, and the gateways that sit between your users and the models.

  1. 11DevOps12 min readllm-d on Kubernetes: Distributed Inference and v0.10 HardeningWhy this step: How llm-d layers on vLLM and the Gateway API Inference Extension, and what its hardening release means for rollouts.
  2. 12DevOps11 min readGateway API Inference Extension: EPP Moves to llm-d, What NowWhy this step: The Endpoint Picker moved to llm-d: what stays upstream and how to re-point your Helm charts.
  3. 13AI/ML12 min readKServe LLMInferenceService Guide: llm-d, WVA and vLLMWhy this step: KServe's LLMInferenceService adds llm-d routing and autoscaling; when it beats raw vLLM Deployments.
  4. 14AI/ML12 min readNVIDIA Dynamo on Kubernetes: Rust EPP and v1beta1 UpgradeWhy this step: NVIDIA's stack on Kubernetes: the Rust Endpoint Picker, the CRD storage change and a blue/green migration.
  5. 15AI/ML12 min readOCI Model Artifacts: Faster Kubernetes Model Cold StartWhy this step: Cold start as hidden latency: OCI image volumes, modelcar and S3 downloads measured against each other.
  6. 16AI/ML12 min readvLLM Semantic Router v0.4: Mixture-of-Models Routing GuideWhy this step: Route one model name across a pool of models with signals and decisions, and when that beats a static choice.
  7. 17Backend12 min readEnvoy AI Gateway Is Now Agent Router: What 1.2 ChangesWhy this step: Envoy AI Gateway is now Agent Router: what 1.2 breaks for MCP and credentials, and the upgrade order.
  8. 18Security11 min readLiteLLM CVE-2026-42208: SQL Injection Fix and Gateway HardeningWhy this step: The gateway is an attack surface too: patch the SQL injection, rotate keys and harden the proxy.

Stages 4 / 4

Autoscaling and cost per token

Scale on the signal that matters, then measure what serving costs and where caching saves it.

  1. 19DevOps10 min readKEDA: Event-Driven Autoscaling & Scale-to-Zero on K8sWhy this step: KEDA basics: scale on queue depth, lag, Prometheus or cron instead of CPU, with the scale-to-zero trade-offs.
  2. 20DevOps12 min readAutoscale vLLM on Kubernetes with KEDA: Queue Depth, Not GPU %Why this step: Applies it to vLLM: queue depth and p95 triggers rather than GPU utilisation, with activation thresholds and slow scale-down.
  3. 21DevOps12 min readKubernetes HPA Scale to Zero for GPU Queue Workers (1.37)Why this step: Native HPA scale to zero for GPU queue workers in 1.37, the ScaledToZero trap and how it compares with KEDA.
  4. 22Cloud11 min readOpenCost Inference Cost per Million Tokens for Self-Hosted vLLMWhy this step: Measure what self-hosted vLLM costs per million tokens with OpenCost, and find the break-even against an API.
  5. 23Cloud12 min readState of FinOps 2026: What 98% Managing AI Spend MeansWhy this step: The organisation's view: what the State of FinOps survey shows about AI cost visibility, ROI and token metrics.
  6. 24AI9 min readLLM Prompt Caching: The Cheapest Cost Optimization You Are Not UsingWhy this step: For hosted models: how prompt caching works across Anthropic, OpenAI and Gemini, and how to write cache-friendly prompts.
  7. 25AI9 min readSemantic Caching for LLMs: Cut Cost on Repeat QuestionsWhy this step: Cache whole answers to repeat questions by embedding similarity, with threshold tuning and invalidation.
The AI & DevOps field guide

More from the AI & DevOps guide

The other reading paths in this section.