All Questions
Ai Coding And Product Systems easy

Your inline code completion fires a request on every keystroke. The GPU fleet is overloaded, and p95 latency is well above 400 ms. Which change helps most?

  1. A Move completion onto the large chat model, which has spare capacity during business hours.
  2. B Debounce requests, cancel stale ones, and cache results keyed on the typed prefix.
  3. C Expand the completion context to the whole repository so fewer follow-up requests occur.
  4. D Queue every keystroke request in order so the user eventually sees each suggestion in turn.

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

Get the app

Related questions