Design real-time live comments
MetaSoftware Engineer · OnsiteLast updated
This question evaluates the candidate's ability to design scalable, low‑latency real‑time messaging systems, focusing on high‑fanout delivery, approximate time ordering, moderation and rate‑limiting mechanisms, and replay of recent events.
Design a real-time comment system for live video (e.g., Facebook Live comments).
Requirements:
- Viewers post comments; all viewers see new comments quickly.
- High fanout (one live video can have millions of viewers).
- Support moderation (delete/flag), rate limiting, and replay of recent comments.
- Comments should be roughly ordered by time.
Out of scope: full creator tooling, advanced ML moderation.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.