One Viral Video
Easy · system design problem
A clip goes viral: traffic doubles and 70% of it asks for one object, which lives on one Varnish node. More Varnish nodes barely move the ceiling.
Your video segments are served by a 4-node Varnish pool in front of S3: 150,000 requests/s, comfortably cached. At T+20s a clip goes viral — traffic doubles for the next half hour and 70% of all requests ask for the same segments, which hash to a single Varnish node. Each viewer watches the clip once, so their browsers have nothing to reuse. S3 cannot take more than 55,000 requests/s.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.