The Desi Architect
Notes / Messaging and Correctness / Design Live Comments (Hotstar / JioCinema Match Chat)
Track 4 · Messaging and Correctness

Design Live Comments (Hotstar / JioCinema Match Chat)

Two crore people are watching an IPL final and the chat panel is open on every phone. You cannot show every comment to every viewer, and you should not try. The design is about choosing what to drop, how to push the rest, and how to replay it later against the video timeline.

Interview problem28 min read
On this page
  1. Problem framing
  2. Questions I ask before drawing anything
  3. Requirements
  4. Estimation
  5. API
  6. Data model
  7. Building it up
  8. SSE: why this transport
  9. The fan-out tiers
  10. Choosing five comments out of ten thousand
  11. Ordering and timestamps
  12. Reactions: counters, not messages
  13. Rate limits and abuse
  14. Moderation without making the chat slow
  15. VOD sync: replaying the chat against the video
  16. Failure modes
  17. Interview Leveling Rubric