All Questions
Llm Gateway Cost And Caching medium

Your gateway limits free-tier tenants to 100 requests per minute. One tenant stays under that limit yet generates about 30x the spend of other tenants with similar request counts. What is the cause and the right control?

  1. A Their client retries more often, so add idempotency keys at the gateway to deduplicate repeated calls from that tenant.
  2. B Their traffic misses the prompt cache, so lower their request limit until their cache hit rate matches other tenants.
  3. C Their requests land on a larger model by default, so pin all free-tier tenants to the smallest model to equalize spend.
  4. D Request counts ignore size; they send long inputs and outputs, so enforce separate input and output token quotas.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions