Code RoomTiered storage with hot/cold placement
HardPrep Room Coding #3831

Tiered storage with hot/cold placement

System designStorage & CDNSenior–Staff~40 min

Design a hybrid local-storage tier for database hosts that places hot data on fast NVMe SSD and colder data on cheaper, larger media, presenting a single logical volume. The DB does mixed random reads and bursty writes; you must keep p99 read latency low for the working set while controlling cost, and avoid write cliffs when the SSD cache fills. How do you decide what's hot, place data, and schedule I/O?

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.