Design Resumable Multi-Gigabyte File Uploads for Google Drive
Last updated: November 29, 2026
Quick Overview
Design the upload path for Google Drive that lets users upload files up to hundreds of gigabytes from browsers and mobile apps over unreliable networks, resuming after interruptions without restarting.
0
0
0 solved
Design the upload path for Google Drive that lets users upload files up to hundreds of gigabytes from browsers and mobile apps over unreliable networks, resuming after interruptions without restarting.
Resumable uploads are a core Google API pattern used by Drive, YouTube and Cloud Storage. The interviewer checks the session protocol, chunk durability and integrity, how the final file is committed atomically, and how to avoid storing duplicate data.
What the Interviewer Expects
- Design an upload session protocol with offsets
- Make chunks durable and verifiable with checksums
- Commit the final object atomically and create file metadata
- Handle quota checks before and during upload
- Garbage collect abandoned sessions
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How does the client learn how much the server already has after a crash?
- Should chunks be uploaded in parallel?
- How do you avoid storing the same 4 GB video twice?
- How do you scan uploaded files for malware?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: start an upload with metadata; send bytes in chunks; resume after network loss or app restart; final file appears in Drive with correct metadata; client can cancel.
**Non-functional:*...
High-Level Design
- Upload frontend: terminates HTTPS near the user, authenticates, routes chunks to the session owner.
- Session service: `session(id, user, target folder, metadata, total_size, received_offset...