🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích
Advanced

High-Throughput Chat Architecture

#system-design #scalability #infrastructure #websockets

Design a scalable distributed architecture for a real-time messaging platform.

Design a distributed backend architecture for a real-time chat application similar to WhatsApp or Discord, capable of supporting 100 million daily active users with 10 million concurrent connections. Your design must address the following requirements: 1) End-to-end encryption for message privacy. 2) Message durability and ordering guarantees in the event of server failures. 3) Low latency delivery (<100ms) globally. 4) Efficient handling of group chats with up to 50,000 members. In your response, detail the data models, choice of transport protocols (e.g., WebSockets vs. MQTT), sharding strategy for user data, consensus mechanisms for leader election, and a disaster recovery plan. Include a trade-off analysis regarding CAP theorem compliance.