May we use cookies so Meta, Google, LinkedIn and ChatGPT see your visit and we learn which ads work? PrivacyMay we use cookies to see which pages help, and let Meta, Google, LinkedIn and ChatGPT see your visit, so we know which of our ads work? That way we spend less on ads that do not work. We do not sell your data, and the site works the same if you decline. You can change your answer at any time under Cookie settings at the foot of the page. Privacy policy
Loading...
This idea carries a full system design question on its own. Each walks through the full answer.
AI Engineering · Llm Genai Ops
Free preview: the first part of this 15-part lesson.
Already bought the course? Sign in to read the whole lesson.
this lesson is part of
Generative AI and Agentic AI Engineering
Unlock this lesson and the 211 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI courseread the rest of this lesson in
Generative AI and Agentic AI Engineering
Unlock this lesson and the 211 other paid lessons
$35 once, by card or PayPal
See the Generative AI and Agentic AI coursein Llm Genai Ops
This lesson is part of the AI Engineering course. Unlock the full course, a separate one-time payment, for lifetime access.
One-time payment by card or PayPal
Get Lifetime AccessOne-time payment: UPI, card or netbanking
Get Lifetime AccessFoundation lessons of this course are free, no payment needed. Try them now
The failure that pages you first in an LLM product is almost never a wrong answer. It is 429 Too Many Requests. The model behaves. The bill is fine. What breaks is that real traffic sends requests faster than your provider agreed to serve them, and the provider does exactly what it said it would: it rejects the overflow.
The shape of the incident is always the same. A feature that was smooth in the demo meets launch-day load. A burst of requests trips the per-minute limit, the provider returns 429s, and the code that never expected a 429 does the worst possible thing: it retries immediately, in a tight loop, across every worker at once. Those retries are more load, so they trip the limit harder, so they generate more 429s, so they retry more. The system is now attacking itself. Latency climbs, the queue backs up, and a that would have shed ten percent of traffic gracefully instead takes the whole feature down.
None of that is a bug in the model, and none of it is fixed by a better prompt. It is an availability problem, and availability is engineering. Rate limits are published contracts. OpenAI documents them in its rate limits guide, and Anthropic documents its own in the rate limits reference. Both enforce limits per minute, on more than one axis, and both expect you to handle rejection as a normal event rather than an exception.
This lesson is the defense. How the limits actually work, why bursty and agentic workloads trip limits that your average load never approaches, and the layered defense (client-side pacing, bulkheads, deadline shedding, jittered backoff, degraded modes, and multi-provider failover) that keeps a 429 from ever reaching a user. The previous lesson on model routing and cascades gave you the fallback models this lesson leans on. This one is about surviving the moment the primary path is throttled or down.