Cloudflare·Software Engineer·Onsite - System Design / Architecture
- Design a rate limiter that takes a request object (with fields like IP, country, first name, last name) and a list of rules, where each rule specifies which attributes to match on and a rate quota. For any incoming request, determine which rules apply and whether to allow or block the request.
“I started with fixed window counters because they're easy to reason about, and the interviewer let me run with it for a while before asking about edge cases at window boundaries.”