Design Resumable Chunked Uploads for Long Facebook Videos on Weak Networks
Last updated: November 29, 2026
Quick Overview
Design the upload protocol and backend that let users upload multi-gigabyte videos to Facebook from phones on unreliable mobile networks, resuming after interruptions without starting over.
Meta
November 29, 20260
0
0 solved
Design the upload protocol and backend that let users upload multi-gigabyte videos to Facebook from phones on unreliable mobile networks, resuming after interruptions without starting over.
Meta serves many users on slow or intermittent connections, so upload reliability directly affects creator retention. The interviewer looks for a session-based chunk protocol, server-side integrity checks, background upload behavior on mobile, and early processing that starts before the upload finishes.
What the Interviewer Expects
- Design an upload session and chunk protocol
- Make chunk uploads idempotent and verifiable
- Choose chunk size adaptively for the network
- Persist upload state on the device for resumes
- Start processing before upload completion
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 do you choose the chunk size?
- How long do you keep incomplete sessions?
- How do you avoid a user re-uploading the same video twice?
- Can you upload chunks in parallel?
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 for a file of known size; send it in chunks; resume at any time from the last confirmed offset; finalize and get a video id.
Non-functional: files up to several GB...
High-Level Design
POST /upload/start {size, sha256_of_first_chunk, mime}returnssession_idand recommended chunk size.PUT /upload/{session}?offset=Xwith a chunk body and its checksum. The server writes the...