Real-time Trending Video Ranking System
Design a highly scalable system for YouTube to identify and display the top 10 most popular videos globally based on view count within a rolling 24-hour window. The system must handle over 100,000 write events per second with minimal lag and serve the leaderboard to millions of concurrent users with sub-50ms latency. Discuss how you handle high-cardinality data, viral 'hot' keys, and ensure the system remains available even during massive traffic spikes.
KafkaApache FlinkRedisCDNLoad BalancerZSETCount-Min SketchSliding Window
00