Code RoomDirectory sync service
MediumPrep Room Coding #3363

Directory sync service

System designDatabases & SQLMid–Senior~40 min

Design a directory-sync service that keeps user and group data synchronized from thousands of customers' source-of-truth directories (Active Directory, Workday, Google Workspace) into your platform, where each customer may have hundreds of thousands of users, syncs run continuously, and a person joining/leaving/changing groups in the source must reflect on your side reliably and in order — without a transient sync error leaving access in a wrong state. Walk through the sync model (push vs pull, full vs incremental), how you keep it correct under partial failures, and the consistency model you expose.

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.