Capacity Planning
Design a file-sync service like Dropbox: a folder of files lives on many devices, and when a user edits a file on one device, the change appears on every other device within seconds.
In scope: syncing changes across devices, uploading and downloading files efficiently, transferring only what changed, and resolving conflicting edits. Real-time character-by-character collaborative editing, full-text search over file contents, and sharing permissions are out of scope.
Scale and usage:
2.1 Raw storage, and what dedup buys back
Assume roughly 0.1 billion active users storing about 50 GB each: 0.1B × 50GB = 5 billion GB, or 5 exabytes, raw. Deduplication — shared blocks stored once — cuts actually-stored bytes below that raw figure. The ratio depends on how much content users' files share: an OS install image or a common media file overlaps completely, while most personal documents overlap not at all. Treat the raw number as the upper bound and dedup as a variable discount on it, not a fixed fraction. Assume roughly 10 metadata operations per active user per minute (version checks, cursor reads, commits): 0.1B × 10 = 1 billion operations a minute, or 1B ÷ 60 ≈ 17 million operations a second. Storage measures in exabytes, but it's write-once and off the latency-critical path. The metadata and notification path, at millions of operations a second, is small per-operation but sits on every single save — that's the hot center of the design.
Key idea. Exabytes of block storage are the bulk, easy half; millions of metadata operations a second are the small, hot center the architecture is actually built around.
What a strong answer sounds like
State the decision, connect it to a requirement, and name the tradeoff. Ask the interviewer for any product facts you need (users, usage, scale, targets) — they will answer. Keep the design focused on the workload.
The AI interviewer asks about this part of Design Dropbox. The interviewer guides you through topics one by one.