🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
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.