All Questions
Llm Gateway Cost And Caching hard

You add a gateway that runs a small-model classifier on every request to choose a route. An autocomplete feature with a 300 ms p99 budget now misses its SLA. Which decision fits the trade-off?

  1. A Gateway overhead is negligible next to model inference, so the regression must be in the provider and the gateway path can stay unchanged.
  2. B Put a semantic cache in front of every route instead of the classifier, since an embedding lookup adds no measurable latency to requests.
  3. C Bypass the gateway for this feature and call the provider directly, since quotas and cost tags cannot be enforced on low-latency paths.
  4. D Use a static route for this feature to skip the classifier, and deploy the gateway near its callers so it adds only a short network hop.

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

Get the app

Related questions