Route inference requests to reuse KV cache without overloading servers

HardSystem design30 minSWEMLEPro outline

The question

You run many inference instances with prefix caching. Design a router that sends requests where their prefix is already cached, without piling load on a few instances.

What the interviewer is looking for

  • Scores instances by cache overlap and current load
  • Explains how to tune the weight between them
  • Tracks prefix ownership cheaply
  • Handles hot prefixes and failures
  • Measures hit rate, latency and balance

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Tencent Hunyuan question type: cache-aware routing across inference instances with a cache score and a load score.

Reported in: mj.mianlingai.com

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Tencent Hunyuan question.