Comparison

LMCache vs Mooncake vs NIXL: Choosing a KV Cache Transfer Backend

Back to BlogWritten by Published Nov 30, 2026
LMCache vs MooncakeKV Cache Transfer BackendLMCache vs NIXLMooncake vs NIXLDisaggregated InferencevLLM KV ConnectorKV CacheGPU Cloud
LMCache vs Mooncake vs NIXL: Choosing a KV Cache Transfer Backend

Three names keep showing up in the same disaggregated-inference conversations, and most comparisons treat them as three competing projects to benchmark against each other. They aren't. LMCache, Mooncake, and NIXL sit at three different layers of the same stack, and LMCache's own backend list includes both of the other two. The real question isn't "which one wins," it's which transport your topology and GPU mix actually need, and whether LMCache should be managing that transport for you.

TL;DR: LMCache vs Mooncake vs NIXL

LMCache is a cache-manager layer that decides what KV to keep and can run on top of either Mooncake or NIXL as its transport; Mooncake and NIXL are the lower-level movers, and picking between them is really a GPU topology decision.

  • Layer, not rival: LMCache's documented storage backends include Mooncake, NIXL, Redis/Valkey, local disk, S3, and GPUDirect Storage, so the three are stackable, not mutually exclusive.
  • Pooling model: Mooncake Store supports multi-producer, multi-consumer KV pooling over DRAM and NVMe; NIXL is strictly point-to-point prefill-to-decode.
  • Transport: Mooncake's Transfer Engine hits roughly 190 GB/s on 8x400 Gbps RoCE, about 4.6x faster than TCP on the same transfer, by its own published benchmark.
  • Scale signal: Mooncake carries 7.2k GitHub stars against NIXL's 1.4k, reflecting Mooncake's broader adoption as Kimi's production serving platform.
  • GPU fit: symmetric RDMA-fabric node pairs suit NIXL's strict producer-consumer model; CPU-DRAM-heavy decode nodes suit Mooncake's pooled Store. Check current GPU pricing for both topologies on Spheron.

LMCache vs Mooncake vs NIXL: What Each Backend Actually Moves, and Over What Transport

Start with what each project actually is, because the naming confusion comes entirely from treating these as peers.

LMCache is a KV cache manager and tiered storage layer that sits between vLLM's memory manager and whatever physical transport moves the bytes. Per LMCache's own documentation, its storage backends include CPU RAM, local disk/SSD, Redis/Valkey, Mooncake, InfiniStore, S3-compatible object storage, NIXL, and GPUDirect Storage (GDS). Under prefill-decode disaggregation, LMCache describes KV transfer between prefill and decode workers as running over NVLink, RDMA, or TCP through transport layers such as NIXL. LMCache decides what gets cached, where it gets tiered, and when it gets evicted. It generally does not reinvent the wire protocol that moves the tensors.

Mooncake is two separate pieces, and conflating them is the second-most-common source of confusion here. The Mooncake GitHub repo describes a Transfer Engine, "a high-performance data transfer framework," and Mooncake Store, "a high-performance distributed key-value cache storage engine designed for LLM inference" that the repo separately notes is "Built on the Transfer Engine." Mooncake is the serving platform behind Moonshot AI's Kimi, and the project states it helped Kimi handle 75% more requests while meeting its SLOs. The repo lists 7.2k stars and 1.5k forks, a useful proxy for adoption outside Moonshot.

NIXL (NVIDIA Inference Xfer Library) is narrower by design. Its own repository describes it as a library "targeted for accelerating point to point communications in AI inference frameworks such as NVIDIA Dynamo," abstracting over CPU and GPU memory plus file, block, and object storage through a modular plugin architecture. Its listed backend plugins include UCX, POSIX, OBJ, AZURE_BLOB, HF3FS, GUSLI, UCCL, MOONCAKE, AIS, GDS/GDS_MT, GPUNETIO, and LIBFABRIC, and the repo notes NIXL can use ETCD for metadata distribution and coordination between nodes, though that's an optional piece rather than a required one. Notice Mooncake appears in that list as one of NIXL's own pluggable backends. Each of these three tools lists another as an option it can run on top of, which is the clearest evidence they are layers, not competitors.

All three plug into the same vLLM interface. Spheron's Mooncake deployment guide shows vLLM's unified --kv-transfer-config flag accepting LMCacheConnectorV1, MooncakeConnector, MooncakeStoreConnector, and NixlConnector as interchangeable connector names, not separate serving stacks requiring separate infrastructure. Switching is a config change, not a rebuild. For the setup steps this post assumes, see deploying LMCache for KV cache sharing and NVIDIA's NIXL disaggregated inference guide.

Worth naming directly: TensorRT-LLM's Dynamo integration uses NIXL with UCX as its default backend for KV transfer, and it can be configured to bypass NIXL and call UCX directly by setting cache_transceiver_config.backend: UCX. NVIDIA built an escape hatch out of its own abstraction layer, which tells you how thin that layer is meant to be.

RDMA vs TCP, Multi-Region vs Single-Rack: Where Each One Wins

Transport requirements are where the three diverge in ways that actually constrain your infrastructure choices, not just your software config.

Mooncake's Transfer Engine wants RDMA/RoCE and is built to exploit it fully. Mooncake's Transfer Engine reaches roughly 87 GB/s on 4x200 Gbps RoCE and roughly 190 GB/s on 8x400 Gbps RoCE, about 2.4x and 4.6x faster than TCP on the same 40 GB transfers, by its own published numbers. That gap is the whole argument for provisioning RDMA-capable NICs on any node running Mooncake Store at scale. It does have a documented TCP fallback, but the performance case collapses without RDMA underneath it.

NIXL leans the same direction through a different mechanism. UCX is NIXL's primary backend, and UCX itself negotiates the best available transport, so NIXL effectively gets RDMA/InfiniBand when present and degrades to TCP when it isn't, without a separate code path. TensorRT-LLM's default use of NIXL-over-UCX inherits this directly. The strongly-recommended guidance holds: run NIXL on an RDMA fabric for production prefill-decode latency, and treat TCP as a fallback, not a target configuration.

LMCache is the one genuinely transport-agnostic member of the three, because it's a manager sitting above whichever transport you wire in. Point it at a plain Redis/Valkey instance over commodity Ethernet and it works, just at Ethernet latency. Point it at Mooncake or NIXL as its backend and it inherits that backend's transport characteristics. This is the detail most comparisons skip: the "LMCache vs NIXL" framing is often really "LMCache-on-Redis vs raw NIXL," a different comparison than "LMCache vs Mooncake vs NIXL" implies.

The pooling model matters as much as raw throughput here, and it's the dimension that decides whether a backend fits your sharing pattern at all:

  • Mooncake Store supports multi-producer, multi-consumer pooling. Multiple prefill workers can write the same hot prefix, and multiple decode workers can read it, without point-to-point coordination between every pair. This is the model Moonshot AI needed for Kimi's long, unique agent traces at 1M-token context windows, where KV cache can't fit on one GPU and recomputing it per step would dominate cost.
  • NIXL is strictly point-to-point. A prefill worker registered as producer transfers to a specific decode worker registered as consumer. There's no pooled store in between; it's a direct pipe. That's exactly why it's fast and exactly why it doesn't generalize to "many workers share one hot prefix" without something else layered on top.
  • LMCache is write-once, read-many for prefix sharing. Its Redis-backed tier is built for the pattern where the same system prompt is computed once and fetched by every subsequent worker, which is a different access pattern from Mooncake's pooled agent-trace model even though both involve more than two parties.

This difference also separates them cost-wise outside a single data center. A point-to-point NIXL pipe between two nodes in the same rack never leaves the local fabric. A Redis- or S3-backed LMCache tier serving decode workers across regions moves bytes over the public internet path, and that's a real line item: Spheron's breakdown of GPU cloud egress costs notes that several hyperscalers charge $0.05-$0.12/GB for data leaving their network, a cost single-rack RDMA setups don't incur because the traffic never crosses a billable boundary.

Picking One: a Decision Table by Topology and GPU Mix

Match the backend to your GPU topology and sharing pattern first; raw throughput numbers only matter once that fit is right.

Topology / workload patternBest-fit backendWhy
Symmetric prefill/decode pairs, same rack, RDMA fabric availableNIXLStrict point-to-point matches 1:1 producer-consumer pairing; TensorRT-LLM's Dynamo path defaults here
CPU-DRAM-heavy decode nodes, long unique agent traces, multi-node poolMooncake StoreMulti-producer/multi-consumer pooling across HBM, DRAM, and NVMe fits KV that outlives a single GPU
Many workers hitting the same system prompt, commodity Ethernet, no RDMA budgetLMCache (Redis/Valkey backend)Write-once, read-many prefix sharing over TCP; no RDMA fabric required
Already have RDMA and want tiering/eviction policy on topLMCache (on Mooncake or NIXL backend)Stacks LMCache's cache-manager logic on an existing high-throughput transport instead of replacing it
Multi-region decode pool, cost-sensitive on egressLMCache with care, or keep pools single-regionCross-region TCP transfer incurs real egress cost that single-rack RDMA setups avoid entirely

Sizing the actual nodes behind any of these rows comes down to KV cache math more than backend choice. Spheron's H100 concurrent-user sizing guide works through how many simultaneous users a given context length and batch size leave room for before KV cache, not weights, becomes the bottleneck, which is the same arithmetic deciding whether a decode node needs to be CPU-DRAM-heavy for a Mooncake pool or can stay GPU-only for a tight NIXL pair.

Where Spheron fits into provisioning either shape: its pricing page lists live on-demand and spot rates across H100, H200, B200, B300, A100, GH200, L40S, and the RTX line, states clusters scale "from a single GPU to multi-node clusters on demand," and offers InfiniBand on request for custom clusters from 8 to 512+ GPUs. That covers both shapes in the table above: a symmetric H100 SXM5 prefill/decode pair for a NIXL point-to-point setup, priced and bookable directly, and a larger multi-node cluster with H200's extra HBM on the decode side for a Mooncake pool, with InfiniBand sourced as a custom-cluster request rather than an instant checkout line, so treat it as a sourcing step ahead of a production RDMA deployment, not something provisioned the same afternoon as the GPUs. None of this makes Spheron a KV-cache product: it's the GPU and network layer underneath whichever of LMCache, Mooncake, or NIXL you deploy and operate yourself.

Pricing fluctuates based on GPU availability. Spheron rates above are live as of 02 Dec 2026; other providers reflect their most recent published rates and may have changed. Check current GPU pricing → for live rates.

This decision needs real GPUs to test against before it's locked into production. Rent H100 and H200 GPUs on Spheron to benchmark a NIXL point-to-point pair against a Mooncake Store pool on your own workload.

Get started on Spheron →

FAQ / 05

Frequently Asked Questions

LMCache is a cache-manager layer: it decides what KV to keep, where to tier it (GPU, CPU, NVMe, Redis), and when to evict it, and it can use Mooncake as one of its own storage backends. Mooncake is itself two things, a Transfer Engine that moves KV tensors over RDMA and a Store that pools HBM, DRAM, and NVMe across nodes into one addressable KV object store. Put plainly, LMCache answers 'what KV do I keep and for how long,' Mooncake Store answers 'where does that KV physically live across the cluster.'

It can use either, depending on configuration. LMCache's documented storage backends list CPU RAM, local disk, Redis/Valkey, Mooncake, InfiniStore, S3-compatible object storage, NIXL, and GPUDirect Storage. Under prefill-decode disaggregation, LMCache describes the KV transfer between workers as running over NVLink, RDMA, or TCP through transport layers such as NIXL. So LMCache is not a rival transport to NIXL or Mooncake; it is often the layer sitting on top of one of them.

There is no single fastest backend because they are not interchangeable point solutions. On its own supported RDMA fabric (RoCE), [Mooncake's own benchmarks report roughly 87 GB/s on 4x200 Gbps and roughly 190 GB/s on 8x400 Gbps](https://github.com/kvcache-ai/Mooncake), both well ahead of plain TCP. LMCache's speed depends entirely on which of those transports you configure it to use.

Yes. Mooncake is one of LMCache's documented storage backends, so a deployment can run LMCache as the cache manager making eviction and tiering decisions while Mooncake Store provides the pooled DRAM/NVMe layer underneath it. This is a stacking relationship, not a bake-off between the two.

Not strictly, but it's strongly recommended for production latency. NIXL's plugin backends include UCX (which runs over RDMA/InfiniBand or RoCE and falls back to TCP), plus POSIX, object storage, and file-system plugins for cases with no RDMA fabric at all. TensorRT-LLM's Dynamo integration uses NIXL with UCX as its default backend for prefill-to-decode KV transfer. Without RDMA, NIXL still runs over its TCP-capable paths, just with meaningfully higher transfer latency per hop.

// Try It Yourself

Try It on Real GPUs

The GPUs behind these guides are the ones you can rent here: H100s, H200s, B200s, and more, billed per minute after a 20-minute minimum runtime, with no contracts. Pick one and you are live in under two minutes.

View Pricing
→
Or talk to our team
Spheron GPU instance going live and linking data centers across the globe