Design Resumable Chunked Uploads With Deduplication For Yandex Disk

Last updated: November 29, 2026

Quick Overview

Design the upload path for a cloud file storage service so that large files upload in resumable chunks, identical content is stored once across all users, and a finished upload appears atomically in the user's folder.

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

0

0

0 solved


Design the upload path for a cloud file storage service so that large files upload in resumable chunks, identical content is stored once across all users, and a finished upload appears atomically in the user's folder.

Yandex Disk stores photos and documents for millions of users, many of whom upload the same files, and mobile uploads over flaky networks must resume. The interviewer checks separation of metadata and blob storage, content addressing, and how commit and garbage collection interact.

What the Interviewer Expects
  • Split metadata (file tree, versions) from content-addressed blob storage
  • Use fixed or content-defined chunks hashed with a strong hash for dedup
  • Make uploads resumable with an upload session that tracks received chunks
  • Commit the file manifest atomically only after all chunks are durable
  • Handle reference counting or mark-and-sweep garbage collection safely
  • Discuss privacy implications of cross-user dedup
Key Topics to Cover
content addressing
chunking
resumable upload
metadata store
garbage collection
object 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 avoid a client claiming it has a chunk by hash without actually owning the data?
  • How would you support editing a large file where only a few bytes change?
  • How do you run garbage collection without deleting a chunk that an in-flight upload just referenced?
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: upload files up to tens of GB, resume after disconnect, list folders, download, versioning. Non-functional: durability of 11 nines, uploads should not re-send data the server already has, ...

High-Level Design

Client splits the file into 4 MB chunks and computes SHA-256 for each plus a whole-file hash. 1) POST /uploads creates an upload session with the manifest of chunk hashes. 2) The Upload service chec...


Submit Your Answer
Markdown supported

Related Questions