Course map

Topic 178 / Core

Compute, storage and managed services

Chapter 11.1 · Cloud Fundamentals

What and why

Every cloud workload eventually needs the same provider-agnostic building blocks, regardless of which provider or service model (→ 174) delivers them: somewhere to run code, somewhere to put data, and off-the-shelf services for common needs that would otherwise be reinvented per team. This topic is the map of those families before any provider-specific name is attached. Builds on: → 174 (cloud computing fundamentals: IaaS, PaaS, SaaS).

Diagram

Family What it holds Earlier topic
Compute runs your code: VMs, containers, functions → 179, → 180, → 184
Block storage a raw disk attached to one compute instance → 9
Object storage flat key→blob store, no attached instance → 79
File storage a shared, filesystem-like store mountable by many → 79
Managed database a relational/NoSQL engine the provider patches, backs up, scales → 58, → 61
Managed queue/cache a message queue or cache run by the provider → 106, → 87

How it works

  1. Compute families span a spectrum from most control to least operational burden: VMs (→ 179) → containers (→ 180) → serverless functions (→ 184) — each trading control for less to manage.
  2. Storage splits by access pattern: block storage behaves like a local disk and belongs to one instance at a time; object storage is a flat, HTTP-addressable store for unstructured data at any scale (→ 79); file storage offers a shared store multiple instances can access concurrently.
  3. A managed database (→ 58, → 61) runs the same engine you'd run yourself, but the provider handles patching, backups (→ 80), and often replication (→ 72) and failover (→ 194) — at a cost premium over self-hosting the same engine.
  4. Managed queues and caches (→ 106, → 87) give the same pattern without operating the broker or cache cluster — provisioning replaces operating.
  5. "Managed" always means a trade: money and some lock-in (the exact API or behavior is provider-specific) for removing a category of operational work entirely — the same build-vs-buy trade-off applied to infrastructure.
  6. These families compose into every architecture in this book — a load balancer (→ 92) in front of compute, compute backed by a managed database, object storage holding files uploaded through that compute.

Practical example

(numbers illustrative). A team self-hosting a relational database on a VM spends roughly 2–4 hours/month on patching, backup verification, and failover drills — or a multi-day incident if they skip it and something breaks. A managed equivalent removes that recurring work for a price premium often in the 20–40% range over the equivalent raw compute cost; for a small team that trade is usually worth it, while a team with existing database-operations expertise and real cost sensitivity at scale may find self-hosting on IaaS cheaper.

When to use it

  • Use managed services by default for anything that isn't your product's differentiator — a database, queue, or cache is rarely what makes your product unique.
  • Use self-hosted/IaaS when you need a specific configuration, engine version, or extension the managed offering doesn't support, or cost at your scale clearly favors it.
  • Avoid assuming "managed" means "unbreakable" — it still has capacity limits, still fails (→ 194), and you still own your backup strategy and restore testing (→ 80) even when the provider handles the mechanics.
  • Failure scenarios: choosing object storage for a workload that needs real filesystem semantics (random writes, locking) and fighting the mismatch instead of switching storage types; assuming a managed database's automatic backups satisfy a restore-tested recovery plan without ever testing a restore.
  • Simpler alternative: for a prototype, the smallest managed instance of each family, provisioned by hand, beats any custom infrastructure — optimize once there's a real cost or scale signal.

Practice

(classification kind, 15–20 min, paper exercise). For five workloads (user-uploaded images, a relational order table, a session cache, a background job queue, a video-transcoding scratch disk), assign the correct storage/compute family and justify against the access pattern — reads vs. writes, shared vs. single-instance access, structured vs. blob data. Done when every assignment matches the access pattern, not habit.

Key takeaway

Compute and storage split into a small number of provider-agnostic families, and "managed" trades money and lock-in for less operational work — the same build-vs-buy decision applied everywhere. Done when you can: match a workload's access pattern to the right storage family and defend a managed-vs-self-hosted choice with cost and ownership, not convenience alone. Used next in → 179 (the base compute primitive), → 185 (infrastructure as code provisions exactly these families), → 191 (provider-specific names for this same map).

References

None — this topic makes no external claims.

Source directory

Search the guide