Code RoomMulti-armed bandit experimentation platform
HardPrep Room Coding #3835

Multi-armed bandit experimentation platform

System designML systemsSenior–Staff~40 min

Design a multi-armed-bandit experimentation platform that product teams use to run hundreds of concurrent experiments. Each experiment can be a fixed A/B split or a bandit (Thompson sampling / epsilon-greedy) that shifts traffic toward winning variants automatically. Assignment must be deterministic and consistent per user (a user always sees the same variant within an experiment), sub-5ms at the SDK call, and correct under overlapping experiments. The platform must report per-variant metrics with valid statistical inference and let teams safely ramp, pause, or hold out a control.

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.