Skip to the page

LLM cost and serving · Scenario

429 errors from the model provider during a sale

The interviewer asks

During a big sale, our shopping assistant starts failing: about 15% of requests get HTTP 429 'rate limit exceeded' from the model provider, and retries make it worse. What do you do now, and what do you change before the next sale?

Then

Follow-ups the interviewer asks next

  1. What kinds of limits does a provider apply?
  2. Why do retries make it worse, and how should you retry?
  3. What do you do in the next ten minutes?
  4. What if the provider has a 40-minute outage instead?
  5. How do you plan capacity for the next sale?

The answer

What a strong answer covers

  • Limits are usually requests per minute and tokens per minute (input and output), per model and per organisation or project. Long prompts use up the token limit even at modest request rates.
  • Retries: honour retry-after; exponential backoff with jitter; a retry budget (for example, at most 10% extra traffic); one or two retries at most on the user's path; a circuit breaker when errors are high.
  • Now: shed load by priority (keep help at checkout, pause extras like review summaries), shorten prompts, move some traffic to another model or region where you have quota, and show a graceful fallback (search results, FAQ links) instead of an error.
  • Outage: a fallback model (another provider or a self-hosted one) behind the same interface, already evaluated; queue work that can wait; a kill switch that turns AI features off cleanly.
  • Next sale: forecast peak tokens per minute (requests × tokens), ask for higher limits or reserved capacity weeks ahead, load-test against the limits, cache common answers, precompute summaries in batch, and add per-user limits so one bot can't eat the quota.

The red pen

Common traps

Avoid:retrying immediately in a loop; adding app servers; no fallback screen.

Practise this out loud

Say your answer out loud to an AI interviewer that follows up, and get a score for it.

Practise by voice

Practise questions like this out loud

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview