systemdesign.academyAI EngineeringFree lessonsSign inGet the course
  1. Home
  2. AI Engineering: Evaluation, LLM Ops and Security
  3. LLM and GenAI Ops
  4. Rate Limits and Provider Failure: The Number One Production Error

AI Engineering · Llm Genai Ops

Rate Limits and Provider Failure: The Number One Production Error

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

AI Engineering

Unlock this lesson and the 199 other paid lessons

  • 210 lessons in 16 chapters
  • 118 lessons built on a lab that really ran
  • An AI tutor beside every lesson that answers and draws
  • Lifetime access, every new lesson included

$49 once, by PayPal

See the AI Engineering course

The rest of this lesson

  1. Two Limits, and You Hit Whichever You Cross First
  2. The Limit Belongs to Your Account, Not the Model
  3. Why Bursts Trip a Limit Your Average Never Touches
  4. A 429 Is a Normal Answer That Hands You a Decision
  5. Defense in Depth: One Trick Is Not Enough
  6. Rate-Limit Yourself Before the Provider Does
  7. Bulkheads: Stop One Feature From Eating the Whole Budget
  8. Backoff Without Jitter Is a Second Outage
  9. Degrade Instead of Failing
  10. Multi-Provider Failover and Its Consistency Tax

read the rest of this lesson in

AI Engineering

Unlock this lesson and the 199 other paid lessons

  • 210 lessons in 16 chapters
  • 118 lessons built on a lab that really ran
  • An AI tutor beside every lesson that answers and draws
  • Lifetime access, every new lesson included

$49 once, by PayPal

See the AI Engineering course

Continue this lesson

in 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. Lifetime access. No subscription.
Global
$49/lifetime

One-time payment by card or PayPal

Get Lifetime Access
Previous lessonModel Routing and Cascades: Running Three Models Without ChaosNext lessonLLM Observability and Tracing: Seeing Inside a Nondeterministic System

System Design

  • Foundation
  • Intermediate
  • Advanced
  • Capstone

AI Engineering

  • Foundation
  • Data, RAG and Agents
  • Evaluation, LLM Ops and Security

systemdesign.academy

  • Home
  • Glossary
  • Interview prep
  • Reviews
  • About
  • Pricing
  • Privacy
  • Terms
  • Refunds
  • Delivery
  • Contact
Capacity Planning: Provision for the Peak, Not the Average
  • What Each Layer Costs
  • How Teams Actually Run This
  • Knowledge Check
  • Foundation lessons free, try before you buy
    India Special
    India
    ₹999/lifetime

    One-time payment: UPI, card or netbanking

    Get Lifetime Access
    Foundation lessons free, try before you buy
    Every ML Platform lesson, Foundation to Advanced
    Real architecture diagrams with real tool logos
    MLOps, LLMOps, and data engineering in depth
    Quizzes with instant feedback
    Built and reviewed by senior engineers
    Lifetime access, all future content included

    Foundation lessons of this course are free, no payment needed. Try them now

    Your First Production Error Is HTTP 429, Not a Bad Answer

    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.