Design Twitch
hard 45 minDesign a live streaming service like Twitch: one person broadcasts, many watch a few seconds later, and they all chat.
Where it shows up
The same pattern appears across everyday software.
An esports final
Millions of viewers at a known hour. Capacity is booked in advance, and chat for that channel gets its own servers.
A school concert
Forty families watch one channel. Converting into five sizes may cost more than it helps, so one extra small rendition is enough.
A live auction
Bids arrive beside video. A normal ten second delay would be unfair, so it needs low latency and a server that decides the order of bids.
A football watch party
Neighbours shout before your picture shows the goal. Delay differences between viewers are felt, not only measured.
A raid on a small channel
A large channel sends its audience to a tiny one. The tiny channel goes from no copies at the edge to thousands of viewers in seconds.
Company town hall
Viewers are in a few offices. A cache inside each office saves the office's own internet line.