Mock Interviewer

Ask Coach

Ask Coach
Clarify requirements before you design — kept separate from your stage notes.

Tap a question to start, or type your own below.

Dropbox System Design

Visual Problem Diagram

Dropbox System Design architecture diagram

Scenario

Picture one person who keeps a slide deck on two computers: a laptop at the office and a second laptop they carry on the train. One evening they finish a 500 MB version of the deck on the train, but the Wi-Fi drops halfway through sending it, and the office laptop has already saved a different edit of the same file. The part of a product that keeps the same folders and files up to date on every device a person owns is called a file sync service; Dropbox is the best-known example. A good sync service continues the broken upload from where it stopped and keeps both edits. A poor one keeps only the last save, so the train copy replaces the office copy and one person's work is gone for good.

Stuck on where to start? Ask Coach

Clarify this problem here, or open Pathway Coach if you want a prep plan first.

Free Coach trial
How should I start prep?

This problem asks you to design a file sync service, which is the part of a product that keeps a person's files and folders the same on every device they own. Save a file in a folder on your laptop and the same file shows up in that folder on your phone. Keep editing on a train with no signal and the changes are sent later, once the signal comes back. Share a folder with a teammate, or send them a link. Open an older copy of a file, or undo a delete. Dropbox is the best-known product that does this.

In the interview you need to explain four things. First, how a large file is sent in parts, so a dropped connection continues from the parts that already arrived. Second, how the phone learns what changed without copying the whole folder again. Third, how both edits survive when two devices saved the same file starting from an older copy. Fourth, how a shared link decides who may download a file. Live editing inside one document, where two people type at the same time, can stay thin because it is a different product.

Constraints

Functional

Save files and folders. Open them on another device. Share a folder or a link. Keep an older copy. Undo a delete. Keep working with no signal.

Non-functional

A broken upload of a 500 MB deck continues from the part that already uploaded. Most active devices see a saved change within a few seconds. A finished file stays stored even if one copy of the bytes is lost. Every open checks who is allowed to see it.

Scale

Hundreds of millions of people and billions of files, with exabytes of file bytes. The hot action is saving a change. The heavy write is a shared folder waking thousands of devices at once.

Stages ahead

1Requirement Analysis
2API Design
3High-Level Design
4HLD Extensions
5Trade-offs

Not ready to design yet?

Try the free Coach trial — ask how to prep, what to practice first, or how InterviewCrafted works. Sign in when you want to start this problem.

Try Coach free

Log in to start practicing

Preview the problem below. Sign in to start your timed session, save progress, and use the AI coach.

Want full access now? View Pro pricing

Dropbox System Design (File Sync & Conflict Resolution)