Case study: design a file sync service
Interview question: design a service like Dropbox. Save a file on your laptop and it appears on your phone and your work computer, even if you edited it offline on a plane. Fifty million users, and not one edit may be lost. Where do you start?
In this lesson you'll learn to
- Turn the file sync question into requirements and numbers, and see why storage and change rate drive the design.
- Split files into content-addressed blocks, upload only new ones straight to object storage, and deduplicate safely.
- Design the metadata service and sync protocol with versions, a journal, cursors and change notifications.
- Handle concurrent edits with conflict copies, and recover from interrupted uploads and deleted data.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.