Compute, storage and networking building blocks

Beginner · 7 min

Every cloud sells the same few primitives under different names: VMs, containers and functions; block, file and object storage; networks and load balancers.

Before thisCloud service models: IaaS, PaaS, SaaS and serverlessRegions, availability zones and failure domains

ArjanCodes · 7 min

Compute, storage and networking building blocks

The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.

Taught by ArjanCodesReport a problem with this video
Not started
Set this lesson's status

What you'll learn

  • Learn the primitives, not the product names. Every major cloud sells compute, block storage, file storage, object storage, managed databases, virtual networks and load balancers.
  • Block storage is a virtual disk attached to one machine in one zone. File storage is a shared network file system. Object storage is a regional HTTP key-value store for whole files.
  • Object storage is read and written over HTTP with whole-object puts. You can read a byte range, but you cannot edit the middle of an object in place.
  • A key like logs/2026/11/27.json is one flat name. The folders you see in a console are prefixes split on a delimiter.
  • Instance storage on the host is fast but disappears when the VM stops, so keep anything you need on a network disk or in object storage.

The problem: three hundred services, a dozen ideas

A cloud console lists hundreds of products. That looks like an impossible amount to learn, but most of it is built from a dozen primitives with different names and options on top. Learn the primitives once and moving between AWS, Azure and Google Cloud is mostly a matter of looking up names.

Think of it like a hardware store. Every store carries timber, screws and pipe. The brands differ and the aisles are in different places, but a carpenter who knows what a joist is can shop in any of them.

Compute

Compute is where your code runs, and it comes in the shapes you met in the service models.

Primitive AWS Azure Google Cloud
Virtual machine EC2 Virtual Machines Compute Engine
Group of identical VMs Auto Scaling group Virtual Machine Scale Sets Managed instance group
Managed Kubernetes EKS AKS GKE
Run a container, no cluster ECS on Fargate, App Runner Container Apps Cloud Run
Function Lambda Functions Cloud Run functions

A VM is picked by instance type (CPU, memory, sometimes GPU) and by an image, the disk it boots from. Most real deployments use a group of identical VMs built from one image, so a failed one can be replaced without a human. That links straight to immutable infrastructure.

Storage

Storage has three shapes, and choosing the wrong one is a common early mistake.

Block storage is a virtual disk. It attaches to one VM, appears as a device you format with a file system, and supports small writes anywhere on the disk. It lives in one zone. Databases want this. Names: EBS, Azure Managed Disks, Persistent Disk.

File storage is a shared network file system (NFS or SMB) that many machines mount at once. Names: EFS, Azure Files, Filestore.

Object storage is a huge key-value store for whole files, spoken to over HTTP. It is cheap, effectively unlimited and regional by default. Names: S3, Azure Blob Storage, Cloud Storage.

There is a fourth kind people forget: instance storage, a disk physically in the host. It is fast and free with some instance types, and it disappears when the VM stops. Use it only for scratch data.

A worked example: object storage is just HTTP

I wanted to show that object storage really is an HTTP API with flat keys, so I queried two public datasets with plain curl. First a listing of a public S3 bucket, NOAA’s climate data, asking for four keys and / as the delimiter:

$ curl -s "https://noaa-ghcn-pds.s3.amazonaws.com/?list-type=2&max-keys=4&delimiter=/"
<ListBucketResult ...><Name>noaa-ghcn-pds</Name>...<KeyCount>4</KeyCount>
<Delimiter>/</Delimiter><IsTruncated>true</IsTruncated>
<Contents><Key>ghcnd-countries.txt</Key>...<Size>3659</Size>...</Contents>
<Contents><Key>ghcnd-inventory.txt</Key>...<Size>36403986</Size>...</Contents>
<CommonPrefixes><Prefix>csv.gz/</Prefix></CommonPrefixes>
<CommonPrefixes><Prefix>csv/</Prefix></CommonPrefixes></ListBucketResult>

I trimmed the XML. The two “folders” came back as CommonPrefixes. They are not directories, just the part of longer key names before the next /. Then the headers of an object in a public Google Cloud Storage bucket:

$ curl -sI https://storage.googleapis.com/gcp-public-data-landsat/index.csv.gz
HTTP/2 200
content-type: text/csv
etag: "122bc69b382c53301d2face6b69d3347"
x-goog-generation: 1642651542972116
x-goog-storage-class: STANDARD
accept-ranges: bytes
content-length: 767466786

A 767 MB object, with an ETag, a generation number that changes on every overwrite, a storage class and accept-ranges: bytes. You can read part of an object with a Range header, and I did:

$ curl -s -r 0-59 https://noaa-ghcn-pds.s3.amazonaws.com/ghcnd-countries.txt
AC Antigua and Barbuda
AE United Arab Emirates
AF Afghanis

There is no equivalent write to the middle of an object. A change is a new upload of the whole thing. I did not try a write: these are other people’s buckets, and I have no cloud account to make my own. Writes need signed requests, which the identity lesson covers.

Networking and databases

Every cloud gives you a virtual network (VPC on AWS and Google Cloud, VNet on Azure) split into subnets, plus load balancers at layer 4 and layer 7 and a DNS service. The virtual networks lesson covers these hands-on. Above the storage primitives sit managed databases: relational (RDS, Azure SQL, Cloud SQL), key-value and document (DynamoDB, Cosmos DB, Firestore). They are worth it for most teams, since backups, patching and failover become the provider’s job.

About the video

“The Basics You Need to Know about AWS, Azure, and Google Cloud” is from ArjanCodes, published April 2024, 6 minutes 50 seconds. Its chapters are compute, object storage, databases and AI services, with a disclaimer up front. It compares the three providers side by side, which is the approach this lesson takes. It does not cover block or file storage or networking in its chapters, so those parts of the lesson are not in the video. English is judged from the title, description and channel. The two in28minutes videos below compare compute and storage across all three clouds at more length. They are from 2022 and have no descriptions beyond their titles.

Where this fits

You can now name the pieces. The next lesson is about who is allowed to touch them: cloud identity and least privilege.

Check yourself

  1. 01Where would you keep a database's data files, user-uploaded images and a shared home directory, and why?

    Database files on block storage, because the engine needs a low-latency disk with in-place writes. Images in object storage, which is cheap, regional and served over HTTP. A shared home directory on file storage, because many machines mount it at once.

  2. 02Why can't you append a line to an object in object storage the way you append to a file?

    Object storage writes whole objects. To change one you upload a new version of the entire object under the same key.

  3. 03What are the AWS, Azure and Google Cloud names for object storage?

    Amazon S3, Azure Blob Storage and Google Cloud Storage.

  4. 04What happens to data on a VM's local instance storage when the VM is stopped?

    It is lost. Instance storage belongs to the physical host, and a stopped VM may come back on a different host.

Go deeper

Notes

Private to you

Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark