Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
Loading the challenge…
While this loads — quick one
Every subscriber must get each event. A queue, or pub/sub?
A video platform lets creators upload recordings of up to several gigabytes, which viewers then watch on phones, laptops and TVs over connections ranging from patchy mobile data to fast fibre. Each upload has to be converted into several resolutions so playback can step down on a slow connection instead of stalling, and that conversion takes minutes per video, far longer than anyone would wait on an upload page. Uploads arrive unevenly, with big spikes after popular events. Most viewing is of a small set of popular videos, watched by millions of people across many countries, and the platform pays for every byte it serves from its own origin.
Every system design question opens with an account. Your design is scored the same way every time, with the reason behind each requirement, and your attempts are kept so you can see what you found hard.