Design a Rate Limiter — Token Bucket, Sliding Window, and Distributed Counters

Rate limiter design at scale: algorithms (token bucket vs sliding window), single-node vs distributed, Redis Lua, fair queueing, and operational concerns.

May 2, 2026 · 4 min · 817 words · Manvendra Rajpoot

API Rate Limit Design — Quotas, Headers, and 429 Patterns in 2026

Designing customer-facing API rate limits. Tier structure, quota types (per-second / per-minute / per-day), Stripe / GitHub-style response headers, 429 with Retry-After, and the patterns customers actually integrate with.

May 1, 2026 · 3 min · 551 words · Manvendra Rajpoot

Design a Distributed Rate Limiter at Scale — Beyond Single-Redis in 2026

When single-Redis stops being enough. Sharded rate limiters, hybrid local/global counters, sliding-window approximations, fairness, and the patterns from CDN-scale services.

April 30, 2026 · 3 min · 578 words · Manvendra Rajpoot

Design a Rate Limiter — Algorithms, Distributed Implementation, and the Tradeoffs

How to design a distributed rate limiter end-to-end. The four classic algorithms, when to pick each, a Redis Lua implementation, distributed coordination, and the gotchas (clock skew, hot keys, fairness).

April 28, 2026 · 7 min · 1462 words · Manvendra Rajpoot

Rate Limiting Strategies for APIs

A practical comparison of rate limiting algorithms (fixed window, sliding window, leaky bucket, token bucket), production-ready Redis implementations, and the headers your API should return.

April 28, 2026 · 8 min · 1525 words · Manvendra Rajpoot