Chapter Two

Storage

Object storage, block storage, and shared file systems — three fundamentally different models. Choosing incorrectly between them is one of the most avoidable and consequential infrastructure mistakes.

3 services

Three Storage Models

The three storage services in this chapter serve different purposes and are not interchangeable:

Cloud StorageObject storage
WebAppCLI
bucket
Any authorized client, anywhere reaches an object by key over HTTP/API — access gated by IAM, not a network mount. No filesystem, no mounting. Best for media, backups, and data-lake files.
Persistent DiskBlock storage
VM
disk
Usually one VM per disk. Mounted as a block device with a real filesystem, normally read-write on a single VM — multi-writer mode is the exception. One VM can mount several disks. Best for OS volumes and self-managed databases on Compute Engine (managed databases use Cloud SQL/Spanner instead).
FilestoreShared file system
VMVMVM
/shared
Many VMs, one share. A managed NFS file share mounted read-write by many VMs at once, with POSIX semantics, inside the VPC. Best for shared workspaces, render farms, and lift-and-shift apps.
ModelServiceAccess patternPOSIX?Shared access?
Object storageCloud StorageKey-based HTTP GET/PUTNoYes, globally
Block storagePersistent DiskMounted as device; filesystem I/OYesLimited (read-only multi-attach)
Shared file systemFilestoreNFS mount; full filesystem I/OYesYes, within VPC

Services in This Chapter