Guide

vLLM Router explained: when you need it, and when you need a gateway

vLLM Router is a Rust load balancer for vLLM worker fleets with KV-cache-aware routing. What it does, and where a gateway fits instead.

vLLM Router is an open-source load balancer from the vLLM project, written in Rust, that spreads requests across a fleet of vLLM workers. It keeps a user's requests on the same worker to reuse its KV cache, and it orchestrates prefill/decode disaggregation. It's an infrastructure component for serving one model at scale, not a gateway for users, keys and vendors.

Facts from the vLLM Router announcement and repository, checked on 2 December 2026.

Three things called "vLLM router"

People searching for a vLLM router usually mean one of these:

ProjectWhat it is
vllm-project/routerThe vLLM Router: a Rust load balancer for vLLM worker fleets, released in December 2025
vllm-project/production-stackA Kubernetes deployment stack for vLLM that includes its own router service
vllm-project/semantic-routerRoutes requests to different models based on what the request is about

This page is mostly about the first.

What vLLM Router does

Load balancing that understands LLM state. A plain load balancer treats every replica the same. vLLM Router offers several policies:

  • Consistent hashing: requests with the same routing key, such as a session or user ID, always go to the same worker, so the KV cache from earlier turns gets reused.
  • Power of two choices: a cheap, randomised policy with good load distribution.
  • Round robin and random: for stateless traffic.

Prefill/decode disaggregation. In this setup, the compute-heavy prefill step and the memory-heavy decode step run on separate worker groups. The router sends new requests to prefill workers, then passes the state to a decode worker. It supports NIXL and NCCL-based (with ZMQ discovery) backends.

Production features. Kubernetes service discovery by label selector, retries with exponential backoff and jitter, circuit breakers that remove failing workers, and a Prometheus /metrics endpoint.

Performance. In the vLLM team's own benchmarks on Llama 3.1 8B with 8 prefill and 8 decode pods, vLLM Router delivered 25% more requests per second than llm-d and twice the throughput of the Kubernetes round-robin balancer. The router is derived from a fork of SGLang's model gateway.

When you need vLLM Router

  • You serve one model on many vLLM replicas and want better throughput and latency than round robin.
  • You run multi-turn chat where cache reuse matters.
  • You're adopting prefill/decode disaggregation.

If you run one or two vLLM servers, you probably don't need it yet.

What vLLM Router doesn't do

It's built to balance traffic across vLLM workers. It isn't designed to:

  • issue API keys to people or apps
  • apply per-user rate limits or token budgets
  • restrict which models each person may call
  • fall back to paid vendors like OpenAI or Groq when your GPUs are busy
  • show cost per user, model and provider

Those are gateway jobs. See what is an LLM gateway and an OpenAI-compatible API for your own models.

Router and gateway together

At scale, the two layers stack:

apps → gateway (keys, budgets, model access, vendor fallback)
          → vLLM Router → vLLM workers for model A
          → vLLM server for model B
          → OpenAI, Groq, OpenRouter (when needed)

The gateway decides who may send a request and which backend should serve it. The router decides which replica of a model handles it.

Before you have dozens of replicas, a gateway that understands self-hosted servers is enough on its own. AI Gateway by LayerX checks each vLLM or Ollama server on a schedule, removes unhealthy ones from rotation, respects per-server concurrency limits and uses prefix-cache affinity to keep similar requests on the same machine. When your servers are full or down, it moves requests to vendors. Each person gets their own keys, token budgets and allowed models. It isn't a replacement for vLLM Router's prefill/decode orchestration at large scale; it can sit in front of it.

Questions

What is vLLM Router?

An open-source, Rust-based load balancer from the vLLM project that distributes requests across vLLM workers, with KV-cache-aware routing and prefill/decode disaggregation support.

How do I load balance multiple vLLM servers?

For a few servers, a gateway with health checks and least-loaded routing is usually enough. For large fleets of one model, use vLLM Router or the production-stack router in front of the replicas.

Is vLLM Router an API gateway?

No. It balances traffic between vLLM workers. It doesn't handle user keys, budgets or vendor fallback, which is what an LLM gateway does.

Does vLLM have built-in load balancing?

vLLM has a data-parallel coordinator for external load balancing, but the vLLM team excluded it from their router benchmark because of a known performance issue, and built vLLM Router for large-scale deployments.

More posts

Keep reading.

See how AI Gateway fits your setup.

Tell us what you run today and how many people need access. We'll get back to you to learn more about your setup.

See how AI Gateway fits your setup.

What do you run today?