Knowledge Guide
HomeSystem DesignAPI Gateway

hard Multi-Region Rate Limiting

Multi-Region Rate Limiting — a globally-shared quota under partition

Once a gateway is deployed in multiple regions with geo-routing, a per-client rate limit stops being a local counter and becomes a distributed-consensus problem: if each region keeps its own counter, a client with a "100/min" limit simply hits every region and gets 100/min per region. The whole design question is the consistency of the shared quota — and PACELC is the lens: a strictly-global count costs cross-region latency (and availability under partition), while per-region local counts are fast and available but only approximate globally.

The exploit to close

Limit = 100/min, three regions (US/EU/APAC), each enforcing its own 100 → a distributed client fans out across all three for 300/min. Any design that treats regions as independent counters has this hole.

Multi-region rate limiting: the cross-region exploit (100/min per region x3 = 300/min) and four stances — strict global counter (PC/EC, exact, cross-region RTT), per-region hard split (limit/regions, wasteful), async-reconciled global (PA/EL, fast+approximate), and client-to-region affinity (local+exact). PACELC decides behavior under partition.
Multi-region rate limiting: the cross-region exploit (100/min per region x3 = 300/min) and four stances — strict global counter (PC/EC, exact, cross-region RTT), per-region hard split (limit/regions, wasteful), async-reconciled global (PA/EL, fast+approximate), and client-to-region affinity (local+exact). PACELC decides behavior under partition.

Four stances (and the PACELC each takes)

Judgment layer — when each

Pitfalls

Takeaways


Re-authored and deepened for this guide, applying CAP/PACELC (Abadi) to distributed rate limiting and standard multi-region quota patterns. Re-authored/Deepened for this guide.

🤖 Don't fully get this? Learn it with Claude

Stuck on Multi-Region Rate Limiting? Open Claude, copy a block below, and it'll teach you this exact concept — visually and interactively.

🎨 Explain it visually

Build the mental picture, not memorization.

I just read a lesson on **Multi-Region Rate Limiting** (System Design) and want to truly understand it. Explain Multi-Region Rate Limiting from first principles using ONE vivid real-world analogy and a visual mental model — draw it as ASCII art or a clear step-by-step diagram — with a concrete example using real numbers. Then ask me one question to check I got the mental picture, and wait for my reply. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🤔 Walk me through it (interactive)

Socratic — adapts to where you're stuck.

Teach me **Multi-Region Rate Limiting** interactively. Ask me ONE guiding question at a time, wait for my answer, and adapt to my confusion — build the idea with me step by step instead of explaining it all at once. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🧪 Quiz me & fix my gaps

Active recall exposes what you missed.

Quiz me on **Multi-Region Rate Limiting** with 5 questions, easy to tricky, ONE at a time. Tell me if each answer is right; at the end, explain clearly what I got wrong and why. If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.
🧠 Make it stick

Intuition + hook + flashcards for long-term memory.

Help me remember **Multi-Region Rate Limiting** for the long term: give the one-sentence intuition, a memorable hook/mnemonic, a tiny worked example, and 3 active-recall flashcards (Q -> A). If you're unsure or a claim isn't standard, say so and reason from first principles instead of guessing.

📝 My notes