Cloud Platforms
Learn the building blocks every cloud provider rents out, each one provider-neutral first and then by its AWS and Cloudflare names: compute, storage, databases, queues, networks and identity. Read policies and events as JSON, and estimate availability and bills with real arithmetic.
- Intermediate
- 4 units, 12 lessons, 156 exercises
- Diagrams, JSON, estimates
- Builds on Networking
Unit 01 · 3 lessons
Foundations
Know what you rent, where it runs and who may touch it
- 01Service models
Service models and the line between your job and theirs
- 02Regions and zones
Regions, zones, edge locations and the arithmetic of two
- BOSSWho can do what
Read an access policy statement by statement, then narrow one
Read the unit guide
A cloud provider is a company with datacenters that rents out computers, storage and networks by the hour, the second or the request. You swap buying for renting: nothing to purchase up front, capacity that follows demand, and a bill that stops when you delete the thing. Every provider sells the same building blocks under different names. This roadmap teaches each block on its own terms first, then gives its AWS name and its Cloudflare name.
What you rent comes in levels. A virtual machine is a computer with an operating system that you run. A managed platform takes a container or your code and runs the servers for you. A function runs once per event and vanishes. A fully managed service is just an API: a bucket, a database, a queue. Each step up, the provider runs more and you run less.
The shared responsibility model says where the line is. The provider secures the cloud itself: buildings, hardware, networks and the software that runs its services. You secure what you put in it: your data, who has access, your configuration, and any operating system you manage yourself. The line moves with the service, but data and access are always yours.
A region is a geographic area holding a cluster of datacenters. An availability zone is one or more separate datacenters inside a region, with its own power and network. Edge locations are many small sites close to users. Parts a request needs in a row multiply their availability, so a chain is weaker than its weakest link. Redundant parts multiply their failure instead: one zone that is down 1% of the time becomes two independent zones that are both down 0.01% of the time.
Every call to a cloud API is made by an identity and checked against policies. A user is a person with long-term credentials. A role is assumed and hands out temporary ones. A policy is JSON: Effect, Action, Resource, sometimes Principal and Condition. Everything is denied until a policy allows it, an explicit Deny beats any Allow, and least privilege means granting only what the job needs.
Unit 02 · 3 lessons
Compute
Choose between servers, containers, functions and the edge for a given workload
- 01Servers and containers
Instances, autoscaling groups, managed containers and what you patch
- 02Functions
Run on an event, scale to zero, pay per request and per millisecond
- BOSSPick the compute
The isolate model, its limits, and five workloads placed where they belong
Read the unit guide
There are four ways to run your code in a cloud: on servers, in containers, as functions, or at the edge. None is best. The right one depends on how long the work runs, how spiky the traffic is, what the code needs from an operating system, and where the users and the data are.
A server here is a virtual machine, called an instance, launched from an image: a disk snapshot holding the operating system and your app. An autoscaling group keeps a number of identical instances alive, replaces the unhealthy ones, adds more when load rises and removes them when it falls. A load balancer in front spreads the requests. Because any instance can vanish, nothing that matters may live only on one. On AWS these are EC2 instances, Auto Scaling groups and Elastic Load Balancing.
A managed container platform runs a container image for you. You say how much CPU and memory each copy needs and how many copies to keep. Sometimes you still own the machines underneath, and sometimes there are none to own. AWS runs containers with ECS, either on your EC2 instances or on Fargate, where no machine is yours. Cloudflare has Containers, which run alongside a Worker.
A function runs when an event arrives: a request, a queue message, a file landing in a bucket, a timer. With no events nothing runs and compute costs nothing. The price is the cold start: the first request to a fresh copy waits while an environment is created. Functions have a time limit, a memory size, and no memory of earlier calls. AWS Lambda bills requests plus duration times memory. Cloudflare Workers bill requests plus CPU time.
Edge compute runs the handler in the provider's site nearest the user. Cloudflare Workers do this with isolates: thousands of small sandboxes inside one running process, which start far faster than a container. In return there is a CPU-time limit, no lasting global state, and access only to the resources bound to the Worker. The trap is distance to data: code beside the user is still slow if every request crosses the world to a database.
Unit 03 · 3 lessons
Data
Put each kind of state in the store that fits how it is read, written and paid for
- 01Object storage
Keys, durability, signed URLs, storage classes and the cost of leaving
- 02Managed databases
Relational, key-value and document stores; replicas, backups and the edge
- BOSSAn upload pipeline
From upload to thumbnail: events, a queue, idempotent workers and a dead-letter queue
Read the unit guide
Compute is disposable and state is not. A server can be replaced in a minute; a lost order cannot. So the first question about any piece of data is where it lives, and the answer decides what can scale, what can fail and what the bill looks like.
Files go in object storage. A bucket holds objects, each a blob of bytes under a key such as users/42/cat.jpg. You put, get, delete and list by prefix, over HTTP, with no disk to size. Durability is the promise that stored bytes are not lost; availability is the promise that a request succeeds right now. They are different numbers. A signed URL lets a browser upload or download one object for a short time without credentials. Colder storage classes cost less to hold and more to read. Data leaving the provider is often billed per gigabyte. AWS: S3. Cloudflare: R2, which speaks the S3 API and does not charge for egress.
Records go in a managed database, chosen by how they are read. Relational for joins, transactions and questions you have not thought of yet. Key-value when you always know the key. Document for nested records fetched whole. AWS: RDS for relational engines, DynamoDB for key-value and document. Cloudflare: D1 for SQL, KV for read-heavy key-value data.
Three protections are easy to confuse. A read replica is a copy that serves reads and may lag: it adds capacity. A standby in another zone takes over when the primary fails: it adds availability. A backup lets you restore to a past moment: it is the only one that undoes a mistake, because replicas and standbys copy mistakes faithfully.
Work that can wait goes on a queue. A bucket can emit an event when an object arrives; a queue holds that message until a worker takes it. Delivery is at least once, so a message can arrive twice and workers must be idempotent. A message that keeps failing moves to a dead-letter queue. AWS: S3 Event Notifications and SQS. Cloudflare: R2 event notifications and Queues.
Unit 04 · 3 lessons
Operating
Wire the parts into a private network, change them through code, and predict the bill
- 01Cloud networking
Subnets, public and private, firewall rules, and DNS and a CDN in front
- 02Infrastructure as code, and cost
Declare, plan, apply; state and drift; a monthly bill from its parts
- BOSSDesign it
A site, an API, a database and files: survive a zone, price it, name the parts
Read the unit guide
A cloud network starts as a private address range of your own inside a region, cut into subnets, each living in one zone. A subnet is public when its route table has a route to an internet gateway, and private when it has none. Load balancers sit in public subnets. App servers and databases sit in private ones, and reach out through a NAT gateway that lets replies in and nothing else. On AWS the network is a VPC.
Firewall rules decide who may connect to what. AWS calls a set of them a security group: it holds allow rules only, everything else is refused, and replies to allowed traffic come back without a rule of their own. A rule's source can be another group, so "only the app tier may reach the database" needs no IP addresses.
DNS and a CDN go in front, as in the Networking roadmap. On AWS those are Route 53 and CloudFront. On Cloudflare a proxied DNS record sends visitors through Cloudflare's network on the way to your origin. Either way the origin should accept traffic only from the CDN, or its protections can be bypassed.
Infrastructure as code replaces clicking with a file that declares what should exist. The tool prints a plan, the difference between the file and reality, and apply carries it out. It keeps state: a record of which real resource belongs to which declaration. Drift is reality changed by hand so that it no longer matches the file. AWS has CloudFormation; Terraform works across providers, Cloudflare included.
A bill is a sum of parts, each charged in its own kind: servers per hour they exist, functions per request and per unit of running time, storage per gigabyte held per month, data transfer per gigabyte that leaves. The two classic surprises are resources nobody uses that bill by the hour anyway, and data transfer.
Learn Cloud Platforms on your phone.
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.