## Summary

When multiple AI agents or background workers call an LLM API in parallel, a single `429 rate_limit_exceeded` often triggers a retry storm—every worker retries at the exact same millisecond, exhausting your tokens-per-minute (TPM) or requests-per-minute (RPM) quota and stalling the entire queue.

If you want this stabilized cleanly, SazM fixes parallel agent rate-limit and retry-storm failures for a **fixed $99, delivered within 48 hours**, 100% in writing with zero calls. See our [AI integration services](/ai-integration-services) or [request the $99 fix](/contact?offer=emergency).

## 1. Jittered Backoff & `retry-after`

- Never retry `429` with a fixed delay (`sleep(1000)`). Add full jitter (`random() * min(cap, base * 2 ** attempt)`) and honor the `retry-after` / `x-ratelimit-reset-tokens` headers.
- Do **not** retry `insufficient_quota`—fail fast and alert instead.

## 2. Shared Concurrency & Token-Bucket Semaphore

- Bound concurrent LLM calls with a queue or semaphore (`p-limit` in Node.js, `asyncio.Semaphore` in Python) sized to your tier's RPM/TPM.

## Need It Fixed?

We debug production multi-agent pipelines, Cloudflare Workers AI queues, and 5-tool MCP servers (`sazm.in/mcp`) for a **fixed $99 within 48 hours**, verified before you pay and 100% async. [Start your $99 fix](/contact?offer=emergency) or explore our [AI integration services](/ai-integration-services).
