Design Livestream Chat That Scales To Viral Shows
Last updated: November 29, 2026
Quick Overview
Design the chat system for live shopping shows: viewers post messages, sellers and moderators can pin, delete, and mute, and every viewer sees new messages with low delay even when a show suddenly has a very large audience.
Whatnot
November 29, 20260
0
0 solved
Design the chat system for live shopping shows: viewers post messages, sellers and moderators can pin, delete, and mute, and every viewer sees new messages with low delay even when a show suddenly has a very large audience.
Chat is how Whatnot buyers react, ask about condition, and banter with the seller, so it is as important to a show as the video. The interviewer checks fan-out design for a skewed audience, moderation actions that take effect fast, and graceful degradation when a room gets huge.
What the Interviewer Expects
- Use persistent connections and per-room pub/sub
- Persist messages for history and moderation with a time-ordered key
- Make moderation deletes and mutes propagate quickly
- Sample or rate limit when a room becomes too busy to read
- Plan for reconnects with a resume cursor
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle a room going from 200 to 80,000 viewers in a minute?
- How would you run automated spam and abuse filtering without adding visible delay?
- How do you show chat replay alongside a recorded show?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Post, receive, pin, delete, mute, and ban, scoped to a show. Messages delivered in under 500 ms p95. History of the last few hundred messages on join. Rooms range from a handful to 100k viewers; total...
High-Level Design
Clients connect to stateless gateways over websockets and subscribe to their show's room. A post goes to the chat service, which checks mute and rate limits, runs a fast spam filter, assigns a...