Engineering at Scale
Rate limiting algorithms: token bucket vs leaky bucket
Fixed and sliding windows, token and leaky buckets compared, where to enforce limits, distributed limits with Redis, and how to protect OTP, login and test submission.