ONE REGIONHTTPSBLOCKSERVER 1FILEZONE AOBJECTSERVER 2ZONE BZONE C1import boto32s3 = boto3.client("s3")3key = "menu/latte.jpg"4s3.upload_file("latte.jpg", "cafe", key)5s3.download_file("cafe", key, "copy.jpg")KEYmenu/latte.jpgDATAthe bytesMETADATAsize, date
Blocks: two servers, the three kinds of storage and three zonesFront: the Python code, and one object's key, data and metadataTokens: a block, a file, the photo and its copiesCloud storage in three kinds: a block volume plugged into one server, a file share that two servers use at once, and an object bucket reached over HTTPS by key. One photo, menu/latte.jpg, is uploaded with a PUT, copied into three Availability Zones, stays safe when Zone A goes dark, and is downloaded by a second server with a GET. Providers name the three kinds differently: AWS EBS, EFS and S3; Google Cloud Persistent Disk (or Hyperdisk), Filestore and Cloud Storage; Azure Disk Storage, Azure Files and Blob Storage. The ideas are the same.

The idea

  1. Cloud storage is disk space you rent from a provider and reach over a network. You pay for what you use or reserve, usually per gigabyte per month. It comes in three main kinds: block, file and object storage.

Three kinds

One photo in a bucket

Choosing

What happens

;; step 1/9 · storage
cloud storage = rented disk space, over a network
pay for what you use or reserve (per GB per month)

block   a drive for one server
file    a folder many servers share
object  a bucket of files found by key

Providers name the three kinds differently: AWS EBS, EFS and S3; Google Cloud Persistent Disk (or Hyperdisk), Filestore and Cloud Storage; Azure Disk Storage, Azure Files and Blob Storage. The ideas are the same. Eleven nines is a design target for a year, not a promise that nothing can go wrong. S3 One Zone-IA keeps data in a single zone, so losing that zone can lose the data.