Skip to content
Backend system design · about 45 minutes

File storage and sharing

Design a service where users upload files of up to 10 GB, keep them in folders, and share them by link or with other users. Uploads must survive a dropped connection, downloads must be fast anywhere in the world, and a user must never be able to read a file that was not shared with them.

Ask first

  • How many users and how much data each? How big is a typical file?
  • Do we sync folders between devices, or only upload and download?
  • Do we need file versions and a trash with restore?
  • Can a shared link be public, password protected or expiring?
  • Do we need previews, virus scanning or deduplication?

The outline

Write your own outline for each part first.

The strong answer, the pitfalls and the follow-ups opens with a year in the app. What a year includes