🏠 Home
Benchmark
📊 Tutti i benchmark 🦖 Dinosauro v1 🦖 Dinosauro v2 ✅ App To-Do List 🎨 Pagine libere creative 🎯 FSACB - Ultimate Showcase 🌍 Benchmark traduzione
Modelli
🏆 Top 10 modelli 🆓 Modelli gratuiti 📋 Tutti i modelli ⚙️ Kilo Code
Risorse
💬 Libreria di prompt 📖 Glossario IA 🔗 Link utili
Advanced

Distributed System Rate Limiter

#system-design #algorithms #scalability #coding

Design a robust, distributed rate-limiting algorithm for a high-scale API.

Explain the architectural design for a distributed rate limiter that must enforce 10,000 requests per minute per user across a globally distributed system of 100 servers. Address how you would handle race conditions, clock synchronization issues (using vector clocks or logical timestamps), and memory efficiency. Discuss the trade-offs between using a centralized Redis store versus a decentralized token bucket approach. Provide pseudocode for the core logic of the token bucket refill and consumption mechanism.