Skip to the guide

Object storage and blob stores

BeginnerConcept3 pages

Photos, videos, backups and logs don't belong in a database. They go to object storage, such as Amazon S3, Google Cloud Storage or Azure Blob Storage, where you store a file under a name and fetch it by that name for about two cents per gigabyte a month. A strong answer keeps the bytes off your app servers and each file in step with its database row.

A warehouse for sealed boxes

Picture a storage warehouse that only takes sealed boxes. You hand in a box with a label and later get it back by that label, whole. To change one page, you hand in a whole new box under the same label. The warehouse keeps enough pieces of every box in three separate buildings to rebuild it after one fire. Boxes you rarely want can go to the basement, cheaper to rent but with a fee each time you fetch one. You never lend anyone your own key. Instead a courier gets a slip that lets them hand in or collect one box, and it expires at 5 pm. You also keep your own ledger of each label, whose box it is and whether it has arrived.