Under load your agent fires many parallel model calls at once and starts getting 429 rate-limit errors.
- ARetry each 429 immediately in a tight loop.
- BIgnore the errors and let those requests fail.
- CAdd a concurrency limit and retry with exponential backoff.
- DDrop to a single request at a time, forever.
Answer: C
Add a concurrency limit and retry with exponential backoff.
Why
Cap concurrency and back off exponentially on 429s. Tight-loop retries worsen the overload, ignoring errors drops work, and serializing everything needlessly throttles throughput.
- ScalingYou classify millions of short messages a day with your most capable (and priciest) model, and accuracy on this task is already…
- ScalingYour bill tripled this month.
- ScalingOne heavy user’s retry storm eats the shared rate limit, and everyone else’s requests stall.
- ScalingAsked to review the UX of one module, an agent started 826 sub-agents and spent $78,000 with no result.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path