The Question
Design
Top-K Trending Videos System
Design a system that computes and serves the top trending or most-watched videos on a platform like YouTube in near real time. The system should aggregate view counts across distributed nodes, update rankings continuously, and serve results with low latency at global scale.
Redis Sorted Sets
Kafka
Stream Aggregator
Count-Min Sketch
Microservices
February 7, 2026