← All checklists

Checklist 16 of 25 · October 2026

Rate limit checklist

An instant retry answers a request to slow down with more load

Comment word: SHIP. This list also answers LEVERS, the word in the earlier videos.

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]

The checks

Everything starts ticked. Untick what you will not do; the choice is saved on this device only, and Print keeps only what you kept.

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; Exponential Backoff And Jitter, 4 Mar 2015

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; Rate limits guide, a second model API provider's documentation, read 27 Nov 2026

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; Circuit Breaker pattern, page updated 21 Mar 2025

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; Handling Overload, chapter 21 of an online reliability engineering book, 2017

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; Retry pattern, page updated 24 Nov 2026

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.

Take this list with youThe PDF is the handout: this list on one or two pages. The Markdown is for your own docs, your wiki, or an assistant you want to hand the list to. Print gives you this list only, without the navigation.

Something in your production AI broke in a way that is not on this list? Tell me what broke.

New checklists, as they are published

One list at a time, each built the same way: a dated failure, the control that stops it, and the primary source so you can check it. Nothing else goes to this address, no digest and no newsletter.