theNotebook

Entry 38 · Sunday

llm api rate limits: the retries made the outage longer

8 November 2026 · By

A crowd of small robots jams a narrow doorway while one calm robot waits a few steps back holding a glowing hourglass.
Provider slowsCalls time outEveryone retriesLoad risesand repeat

Kitchen table

When everyone pushes a stuck door at the same time it stays stuck, so you step back, wait a moment and take turns.

Whiteboard

I watched a model provider slow down for a few minutes. Our services saw timeouts and rate limit errors. Every caller retried at once, on the same fixed delay. Agents made it worse, because one task fans out into many calls. Each failed tool call retried, and then the planner retried the whole step. Retries multiplied across layers, so load rose as capacity fell. The provider stayed saturated long after its fault cleared. The fix is boring, and it works. Use exponential backoff with full jitter. Honour the Retry-After header when the server sends one. Keep a retry budget, so retries stay a small share of traffic. Retry in one layer only, and let the other layers fail fast. Add a circuit breaker that sheds low-value work first. The trade-off is real. Some requests fail that might have passed. I measure retries per original request, at every layer. I also watch time to recover after an incident, not only the error rate. When retries outnumber first attempts, the system is attacking itself.

Boardroom

A short outage at our AI provider can become a long one inside our systems. Our software retries failed calls on its own. If every system retries at once, the retries become the outage. AI agents multiply this, because one customer task makes many calls. The cost shows up twice. We pay for wasted calls, and customers wait longer for recovery. The fix is cheap engineering discipline, not a new vendor. It means limits on retries, waiting before trying again, and dropping low-value work first. The question to ask is simple. When our AI provider slows down, do our systems back off or pile on?

Tags

  • rate limits
  • retries
  • reliability
  • agents
  • serving

All entries · 43 in all

Search the notebook