Rate limiting: a practical guide to algorithms, 429s and LLM limits
Six algorithms, four places to enforce them, one status code and a draft standard for telling clients how much quota is left. A working reference for rate limiting HTTP APIs, with the request and token limits that OpenAI, Anthropic and Google apply to model traffic.
