Code RoomVideo CDN edge storage
HardPrep Room Coding #3720

Video CDN edge storage

System designStorage & CDNDistributed systemsSenior–Staff~45 min

Design the edge storage + caching layer of a video CDN optimized for live and VOD streaming. Constraints: catalog far exceeds any single PoP's disk, segment requests are bursty and follow a heavy-tailed popularity curve, a live event can flash-crowd a single title, eviction must protect popular segments, and you want a high byte-hit ratio while keeping origin egress (the expensive part) low. Cover segment storage at the edge, admission/eviction, and live vs VOD.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:00 left
Estimate5:00 planned
Design15:00 planned
Deep dive12:00 planned
Failure8:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.