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
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

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
Resumable uploads
Chunking
Checksums
Mobile background tasks
Blob storage
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
  • 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 Problems
Sample 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} returns session_id and recommended chunk size.
  • PUT /upload/{session}?offset=X with a chunk body and its checksum. The server writes the...

Submit Your Answer
Markdown supported