Design Global Edge Rate Limiting Across Google Front End Points of Presence

Last updated: November 29, 2026

Quick Overview

Design a rate limiter that enforces a single global limit per customer key (for example a Cloud Armor rule of 1,000 requests per minute per client IP) when that client's traffic lands on dozens of edge locations at once.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
Onsite
System Design
Hard

0

0

0 solved


Design a rate limiter that enforces a single global limit per customer key (for example a Cloud Armor rule of 1,000 requests per minute per client IP) when that client's traffic lands on dozens of edge locations at once.

Edge networking teams at Google ask this to see if candidates can reason about distributed counting under latency constraints. The interviewer is probing approximation, gossip or aggregation strategies, and the trade-off between precision and reaction speed against a DDoS-style burst.

What the Interviewer Expects
  • State why per-PoP independent limits are wrong for a global limit
  • Propose local counting with periodic global aggregation
  • Bound the error and reaction time of the approach
  • Handle heavy hitters versus the long tail of keys differently
  • Describe memory-efficient counting for millions of keys
Key Topics to Cover
distributed counting
heavy hitters
count-min sketch
anycast
approximate enforcement
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How quickly can you block a client that suddenly sends from 50 PoPs?
  • How would you count unique keys if memory is tight?
  • How does anycast routing change your design?
  • What if the limit must be exact for billing purposes?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements
  • Rules like "per client IP, 1,000 requests/minute, then deny or throttle for 5 minutes."
  • Traffic for one key may arrive at any of 100+ PoPs via anycast, though usually concentrated in a few.
  • Enfo...
High-Level Design
  1. Local counters at each edge proxy: sliding window counts per (rule, key).
  2. Regional aggregators: every second, each PoP sends deltas only for keys above a small local threshold.
  3. **Glob...

Submit Your Answer
Markdown supported