Code RoomCollaborative cursor presence
MediumPrep Room Coding #3404

Collaborative cursor presence

System designNetworking & APIsMid–Senior~40 min

Design the live multiplayer-cursor and selection-presence layer for a collaborative design canvas (think the moving colored cursors + 'who's selecting what' in a shared document). A room can have up to 200 simultaneous collaborators; each moves their cursor continuously (potentially 60 updates/sec) and selects objects. Everyone should see others' cursors moving smoothly in near-real-time, but this ephemeral data must not overwhelm the network or the document's persistent storage. How do you broadcast high-frequency ephemeral presence within a room cheaply?

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.