Code RoomImage and video delivery
MediumPrep Room Coding #3711

Image and video delivery

System designStorage & CDNMid–Senior~40 min

Design an image and short-video storage + delivery pipeline for a social product. Constraints: millions of uploads/day, every asset needs multiple derivatives (thumbnails, several resolutions, formats like WebP/AVIF/H.264), p95 delivery under 50 ms via CDN, and you want to avoid pre-generating every variant for assets that are never viewed. Cover ingest, derivative generation, and delivery.

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.

Clarify4:30 left
Estimate4:30 planned
Design13:30 planned
Deep dive10:30 planned
Failure7:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.