Hotstar: Twenty-Five Million for the Final Over
Hard · system design problem
A cricket final: traffic doubles at the toss and jumps fivefold when the star walks in. Autoscaling is minutes too slow, ranking cannot scale at all, and everyone reads the same live score.
Inspired by live-cricket streams that reached 25 million concurrent viewers in 2019, where the platform scaled ahead of the match on a schedule and had a “panic mode” that switched off non-essential features to keep video and scores flowing. Here: the app’s home screen (home-api) shows the live score (Redis → Cassandra), personalised rows (ranking service: GPU-backed, cannot scale today) and ads (ad server, 30,000 requests/s). At T+20s the toss doubles traffic; at T+150s the star batter walks in — ×5 for the rest of the match, with 80% of score reads for the one live score. New home-api instances take 90 s to boot. The run is graded on the whole match.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.