41. Design Live Streaming at Scale (Live Cricket)
1
The interview prompt2
41.1 What do you ask first?3
41.2 How big is this, really?4
41.3 What are the doors?5
41.4 What do we store?6
41.5 What does the whole system look like?7
41.6 How do live ingest and segmenting work?8
41.7 How does the CDN cope at peak?9
41.8 How do you pre-scale for spikes?10
41.9 How does live score sync work?11
41.10 What would you say in the last five minutes?12
Score yourself13
Variations to practise14
Sources15
Code lab41. Design Live Streaming at Scale (Live Cricket)
Variations to practise
3 min read+10 XP
Chapters used
Approach (1), Estimation (2), Polling vs WebSockets (21), Rate limiting (25), CDNs and request collapsing (26), Failures, degradation and failover (29), Observability (30), Video streaming and ABR (40).
Try these variations
Each is a common follow-up. Answer in two minutes, then check the sketch.
- "Add 10 language commentary feeds." → Separate audio renditions in the playlist (HLS alternate audio), sharing the same video segments, so caches aren't multiplied.
- "Live chat beside the stream." → A separate, sampled and rate-limited chat system; at millions of viewers, show a sample of messages rather than all of them.
- "Rewind the last 2 hours." → Keep a longer playlist window and segments for 2 hours; rewinding viewers are spread out, so they hit caches less.
- "Personalised ads in the stream." → Server-side ad insertion: stitch ad segments into per-user (or per-segment-of-users) playlists, keeping content segments shared and cacheable.