Your fleet of agents all hit a 429 rate-limit at once and every one immediately retries on a fixed 1-second…
Your fleet of agents all hit a 429 rate-limit at once and every one immediately retries on a fixed 1-second timer.
- AUse exponential backoff with random jitter between retries
- BShorten the timer to 200 ms so work finishes sooner
- CRetry forever on the fixed timer until it clears
- DTreat the 429 as fatal and abort the whole run
Answer: A
Use exponential backoff with random jitter between retries
Why
A 429 is retryable, but synchronized fixed retries create a thundering herd that keeps re-triggering the limit. Exponential backoff plus jitter spreads the load so requests actually get through.
- Errors & recoveryAn agent processes a batch of 100 records.
- Errors & recoveryA payment tool times out.
- Errors & recoveryAfter a tool returns an error, the agent calmly calls the very same tool with the very same arguments, again and again.
- Errors & recoveryYour main AI provider fails halfway through a streamed answer; the user already sees the first paragraph.
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