Develop a scalable, real-time live comments system that enables users to post and view comments instantaneously. The system should support high volumes of users and messages, provide real-time updates to all participants, and maintain a high level of performance and reliability.
Suggested time: 45 minutes
Loading the workspace...
A live comment system looks deceptively simple: users type messages and everyone else sees them. The real engineering challenge surfaces at scale. When a football match draws 5 million concurrent viewers and a last-minute goal triggers 10,000 comments per second, every comment must reach every viewer within 100 milliseconds. The system is not a chat box; it is a real-time fan-out engine with moderation built in.
The building blocks this design relies on, each explained in its own lesson.
Design Youtube or Netflix (medium)
Design a Video Conferencing system (medium)
Design Facebook’s Newsfeed (hard)