All Questions
Llm Gateway Cost And Caching hard

Your gateway limits each tenant to 600 requests per minute. One tenant stays under the limit but drives 20x the spend of the others by sending 100,000-token documents and requesting long outputs. Which quota design controls cost?

  1. A Lower that tenant's request-per-minute limit in proportion to its spend, keeping request count as the single enforcement unit for all tenants.
  2. B Add a per-tenant cap on concurrent in-flight requests, since long calls hold connections longer and concurrency therefore tracks spend closely.
  3. C Enforce token quotas with separate input and output limits, reserving max output tokens at admission and reconciling with actual usage.
  4. D Cap combined input plus output tokens per request at one fixed size for every tenant, since a single total limit prevents expensive calls.

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

Get the app

Related questions