Skip to content
Theory · File storage · lesson 4 of 10

API and data model

The API of a file storage service answers two questions: how a device saves an edit, and how another device learns what changed. Both answers rest on one data model. Every folder has a change journal with running numbers, and every version of a file has a list of the chunks it is made of. We'll go through the calls first, then the tables.

In this lesson

  • Upload in three calls
  • How a device learns what changed
  • The namespace is the unit of data
  • Where each thing lives
  • Common mistake
  • Key points