Inference Infrastructure15 min
Prefix Caching and Request Routing
Balance prefix reuse against queue load, compatibility, and tenant isolation when routing inference requests.
Huang Tzu Lin
3 posts
Balance prefix reuse against queue load, compatibility, and tenant isolation when routing inference requests.
Calculate memory per token, allocate complete blocks, and distinguish snapshot capacity from room to finish.
Trace a request through prefill, decode, caching, and streaming—and reconcile its timing and memory costs.