All Questions
Llm Gateway Cost And Caching medium

Your team moved an autocomplete feature with a 300 ms p95 budget behind the central LLM gateway, which runs a semantic cache lookup and a routing classifier on every request. p95 latency now exceeds the budget. What is the right explanation and response?

  1. A Gateways are transparent proxies, so the jump must come from the provider and is fixed by switching to a faster provider.
  2. B The semantic cache lowered the prompt cache hit rate, so every request now pays full prefill time on its input tokens.
  3. C The added latency is TLS overhead, so terminate TLS at the client edge and send plaintext to the gateway to remove it.
  4. D Each added hop and model call costs latency; bypass embedding and classification on this route, keeping auth and metering.

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

Get the app

Related questions