Design the Google Drive Desktop Sync Client and Backend

Last updated: November 29, 2026

Quick Overview

Design how Google Drive keeps files synchronized between a user's laptops and the cloud, including offline edits, conflicts, and efficient transfer of large files.

Google
System Design
Software Engineer
Google
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design how Google Drive keeps files synchronized between a user's laptops and the cloud, including offline edits, conflicts, and efficient transfer of large files.

Sync is the hardest part of a Drive-like product and is often asked separately from the generic "Design Google Drive" question. Interviewers check change detection, the change journal, conflict handling, and chunked transfer with dedup.

What the Interviewer Expects
  • Uses a server-side change journal with cursors
  • Detects local changes efficiently
  • Uploads changes in content-defined chunks
  • Defines a clear conflict resolution policy
  • Handles renames, moves, and deletes correctly
Key Topics to Cover
file sync
change journal
conflict resolution
chunking
delta transfer
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • What happens if two devices rename the same folder offline?
  • How do you avoid re-uploading a 2 GB file after a small edit?
  • How does a new device do its initial sync?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: bidirectional sync between local folders and Drive; offline edits that sync when reconnected; conflict handling; renames and moves; selective sync; shared folders.

Non-functional:...

High-Level Design
  1. Metadata service: per-file records (id, parent id, name, version, content hash, chunk list), stored in a sharded database by user or shared drive.
  2. Change journal: an append-only, per-use...

Submit Your Answer
Markdown supported