Design a Versioned IDE Settings Sync System
Design a settings service that combines personal and team configuration and converges correctly across online and offline IDE clients.
Problem statement
For this exercise, assume an IDE settings service in which a user may belong to several teams and may use several devices. A user maintains personal preferences, while a team administrator publishes settings for a team workspace.
Team-managed keys override personal values inside that team; personal settings remain effective for keys the team does not manage. An IDE client can fetch its effective settings and receive pushed change notifications.
User and team updates carry a stable operation identifier and an expected scope version so retries are safe and conflicting same-scope writes return an explicit conflict instead of silently overwriting one another.
Push delivery is at least once: notifications may be lost, duplicated, delayed, or reordered, and a client that was offline must converge to the current authorized settings after reconnecting.
Assume 10 million user accounts, 500,000 teams, up to 10,000 members in one team, and two million concurrently connected IDE clients.
Peak traffic reaches 20,000 personal-setting writes and 200 team-setting publications per second; a large-team publication may create a burst of one million target-client notifications per minute.
Healthy effective-settings reads should complete within 100 ms at p95, accepted updates within 500 ms at p95, and online clients should normally observe a new effective version within five seconds. An offline client should converge within ten seconds of reconnecting even after 30 days away.
Accepted versions must survive a process or single-zone failure. Exclude source code, secrets, extension binaries, collaborative document editing, and arbitrary semantic merging inside an individual setting value.
What to build
- A user can read and conditionally update personal IDE settings across devices with a stable result for every retried operation.
- An authorized team administrator can publish a versioned team-settings change that governs the team's managed keys.
- An authorized IDE client can read the effective settings for a user and team context with the contributing user, team, and membership versions.
- Online and reconnecting clients receive or recover settings changes without rollback from lost, duplicated, delayed, or reordered notifications.
At scalePractice assumption
- 10 million user accounts and 500,000 teams support two million concurrently connected IDE clients, with up to 10,000 members in one team.
- Peak traffic reaches 20,000 personal-setting writes and 200 team-setting publications per second, and one large-team update may target one million client notifications per minute.
- Effective-settings reads complete within 100 ms at p95, accepted updates within 500 ms at p95, and healthy online clients observe a new effective version within five seconds.
- Accepted versions survive a process or single-zone failure, change history is retained for 30 days, and a client offline beyond retained history receives an authoritative snapshot and converges within ten seconds of reconnecting.