Code Room
System designMediumsd-g098
Subject Ml systemsLevel Mid–Senior~40 minCommon in ML systems interviewsIndustries Technology

Question

Design the system that ships and runs an on-device computer-vision model on 50M smartphones (e.g. a real-time camera segmentation feature). Inference runs locally for privacy and latency, but the model must be updatable over the air, must work on a wide range of device capabilities, and you need to know in aggregate whether a new model version is actually better — all without uploading users' images. Design the on-device inference + update + telemetry system.

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.

Narrate your design
Loading whiteboard…
Run or narrate your approach, then ask the coach.