# Rate limit checklist

_An instant retry answers a request to slow down with more load_  
@demotoprod · SHIP · also LEVERS · October 2026

A 429 response means the user has sent too many requests in a given amount of time, and a client that retries at once sends more. One engineering post shows 3 retries at each of 5 layers raising database load 243x. Five checks, each sized for an afternoon.

**A retry policy to adapt per provider**

```
# One block per provider; names in capitals are yours to set
retry:
  on_status: [429]
  wait: retry_after_plus_jitter  # else random 0 to capped backoff
  max_attempts: 3                # per request, one published design
  max_retry_ratio: 0.10          # 10% of requests, same design
  layer: top_only                # lower layers pass the error up
  only_if: [read_only, idempotent, idempotency_token]
pacing:
  token_bucket_rate: RATE_BELOW_PUBLISHED_LIMIT
breaker:
  failure_threshold: FAILURE_THRESHOLD
  open_seconds: AT_LEAST_RETRY_AFTER
  fallback: [second_provider, cached_answer]
```

- [ ] **1. Wait for Retry-After, then add jitter**

  **What happened.** RFC 6585 says a 429 response MAY include a Retry-After header saying how long to wait. The header is optional, so a client needs its own delay too. In one published simulation, adding jitter to exponential backoff cut the call count by more than half with 100 contending clients.

  **The check.**
  - Wait at least the Retry-After seconds plus a small random delay, so clients do not return together.
  - Without the header, wait a random time between 0 and a capped exponential delay.

  ```
  import random
  
  def next_delay(attempt, retry_after=None, base=1.0, cap=60.0):
      if retry_after is not None:        # seconds, from the Retry-After header
          return retry_after + random.uniform(0, 1)
      return random.uniform(0, min(cap, base * 2 ** attempt))
  ```

  Source: [RFC 6585, Additional HTTP Status Codes, April 2012](https://www.rfc-editor.org/rfc/rfc6585)

  Source: [Exponential Backoff And Jitter, 4 Mar 2015](https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/)

- [ ] **2. Pace your own calls with a token bucket**

  **What happened.** One provider documents 60 requests per minute as a rate that might be enforced as 1 per second, so short bursts can trigger errors, and describes capacity as a token bucket refilled continuously. A second provider's guide says unsuccessful requests count toward the per-minute limit.

  **The check.**
  - Put a token bucket in front of every call, refilled below your published limit, one bucket per limit (requests and tokens per minute).
  - After a 429, lower the rate and climb back in steps.

  Source: [Rate limits, a model API provider's documentation, read 27 Nov 2026](https://platform.claude.com/docs/en/api/rate-limits)

  Source: [Rate limits guide, a second model API provider's documentation, read 27 Nov 2026](https://developers.openai.com/api/docs/guides/rate-limits)

- [ ] **3. Trip a circuit breaker and route to a fallback provider**

  **What happened.** A circuit breaker wraps a protected call and trips once failures reach a threshold; further calls fail without the protected call being made, sparing a struggling server, and after an interval a trial call goes through (half open).

  **The check.**
  - Give each provider its own breaker with a written threshold and open interval, held open at least Retry-After.
  - While open, route to the fallback provider or a cached answer; close only after a successful trial call.

  Source: [Circuit Breaker, 6 Mar 2014](https://martinfowler.com/bliki/CircuitBreaker.html)

  Source: [Circuit Breaker pattern, page updated 21 Mar 2025](https://learn.microsoft.com/azure/architecture/patterns/circuit-breaker)

- [ ] **4. Cap retries per request, per client and per layer**

  **What happened.** With 3 retries at each layer of a 5-deep stack, load on the database rises 243x. A published overload design budgets 3 attempts per request and retries only while retries are below 10% of requests; with both, growth falls to 1.1x in the general case.

  **The check.**
  - Retry at one layer only and pass the error up from the others.
  - Cap attempts per request and the retry share of requests; alert on the ratio.

  Source: [Timeouts, retries, and backoff with jitter, 5 Dec 2019](https://builder.aws.com/content/3EumjoZascWd1oZiEgL8ORlv3qE/timeouts-retries-and-backoff-with-jitter)

  Source: [Handling Overload, chapter 21 of an online reliability engineering book, 2017](https://sre.google/sre-book/handling-overload/)

- [ ] **5. Retry only calls that are safe to repeat**

  **What happened.** A retry can run an operation more than once. One post says APIs with side effects are not safe to retry unless they provide idempotency; read-only APIs are typically idempotent, resource creation may not be, and some APIs offer token-based mechanisms that make them safe.

  **The check.**
  - List every retried call and mark it read-only, idempotent or neither.
  - For neither, send an idempotency token if the API accepts one, otherwise do not retry.

  Source: [Timeouts, retries, and backoff with jitter, 5 Dec 2019](https://builder.aws.com/content/3EumjoZascWd1oZiEgL8ORlv3qE/timeouts-retries-and-backoff-with-jitter)

  Source: [Retry pattern, page updated 24 Nov 2026](https://learn.microsoft.com/azure/architecture/patterns/retry)

Figures are the sources' own: 243x is a worked example, "more than half" comes from one simulation, and 3 attempts, 10% and 1.1x belong to one published design; tune them to your traffic. Snippet delays are placeholders, and "an afternoon" per check is a planning estimate, not a measurement.

The live version of this list, with every source link, is at https://indica-tech.com/checklists/rate-limit/. The PDF is at https://indica-tech.com/checklists/lead-magnets/LEVERS-rate-limit-checklist-2026-10.pdf.

---

**Nitish Gautam — Indica Technology Ltd.** Founder-led AI engineering: demo to production, in regulated industries, on fixed scope.

Website https://indica-tech.com · Book a call https://indica-tech.com/#contact · hello@indica-tech.com

YouTube youtube.com/@demotoprod · LinkedIn linkedin.com/company/indica-technology · Instagram and TikTok @demotoprod

_Rate limit checklist · October 2026 · @demotoprod_
