Code Room
System designMedium
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.
Learn the concepts
Loading whiteboard…
Run or narrate your approach, then ask the coach.