Design a Massive-Scale Instant Messaging and Social Platform
Design a highly available and scalable communication system similar to WeChat. The system must support real-time 1:1 and group messaging for over 1 billion users, a social feed (Moments) with a complex social graph, and real-time presence tracking. Address the challenges of maintaining hundreds of millions of concurrent persistent connections, ensuring message delivery guarantees (no loss, correct ordering), and managing high-throughput write-heavy workloads for social updates. Discuss the trade-offs between push and pull models for feed distribution and the protocols used for mobile network resilience.
CassandraRedisKafkaWebSocketgRPCFlinkZooKeeperCDNTLSAnycast DNS
00