The Hard Problems: Spikes, Herds, CDN Choice and Delay
Four problems that only appear when crores watch live cricket, explained from zero: getting servers ready before the crowd, millions of phones knocking at once, picking the right CDN for every street, and choosing between less delay and smoother video.
01In 30 seconds
Nine runs are needed off the last over. The app sends an alert to crores of phones: "Final over. Watch live now." Within seconds, millions of phones wake up together. Every one of them opens the app, loads the home screen, checks the score and asks to start the video.
At the same time, in Lucknow, Ravi's mobile network is struggling with one CDN, while the same CDN works perfectly for people in Pune. And Ravi's neighbour, watching on TV, has just shouted "Six", while Ravi's phone still shows the bowler running in.
The question this lesson answers: how do you stay standing when the crowd arrives faster than new servers can start, when millions of phones ask the same thing at once, and when the best route changes from street to street?
There are four hard problems. Here they are in one line each:
| Problem | In simple words |
|---|---|
| Servers ready before the crowd | new servers take minutes to start; people arrive in seconds |
| Millions knocking at once | crores of phones send the same request in the same second |
| The best CDN for every street | a CDN that is fine for India can be bad in one city |
| Less delay or smoother video | a smaller delay means a smaller safety store of video |
For each one, we follow the same story: the simple fix, why it breaks with so many people, and what actually works.
Loading the rest of the lesson…