FDEInterviews logo
RAG & Agent System Design / 61
hardNewOpenAIAnthropicDatabricks

One tenant started sending 100,000-token documents and everyone else's latency doubled. The rate limiter says nobody is over quota.

The rate limiter is working correctly and that is the problem. It counts requests, and one hundred-thousand-token request occupies the KV cache of fifty short ones, so admitting both tenants equally hands one of them eighty percent of the machine.

Updated Aug 2026 · Grounded in real Forward Deployed Engineer interview loops and written to a senior-engineer editorial bar.

The rate limiter is working correctly and that is the problem. It counts requests, and one hundred-thousand-token request occupies the KV cache of fifty short ones, so admitting both tenants equally hands one of them eighty percent of the machine.

20 answers per topic instead of 10, plus saved progress and bookmarks · no cardor unlock all 506 remaining answers · ₹2,000 / $25
UP NEXT ON YOUR JOURNEY
FEDITOR'S NOTE

The rate limiter is not broken and the candidate who goes looking for a bug in it will spend the round there. It is counting requests, and requests are not the scarce resource. What separates a strong answer is naming KV cache as the contended thing and then noticing the consequence: a limiter that counts requests actively enforces the unfairness, because equal request counts mean wildly unequal cache consumption. Listen for whether they can state the quota in the right unit.

DISCUSSION · 0

No comments yet — be the first to share your approach.