System design rate limiter
Token bucket vs sliding window
Token bucket, leaky bucket, sliding log, sliding counter. Pick one and defend it.
Token bucket, leaky bucket, sliding log, sliding counter. Pick one and defend it.
Local vs global counters. Redis vs edge. What you do in a partition.
Memory for sliding windows at 100k rps. Where 1% error is acceptable.
allow(key) → bool. Thread safety. Fixed window first, then token bucket.