Skip to Content
Asterrr's Handbook
4 · Cloud native architecture

Cloud computing models

IaaS, PaaS, CaaS, FaaS and SaaS, public, private, hybrid and multicloud, virtualization vs containers vs orchestration, and how cloud native differs from simply running in a cloud.

Exam tasks: 4.2 (cloud native ecosystem and principles: the cloud computing background the exam assumes)

The decision: who is responsible for which layer (service model), where does it run (deployment model), and is the application merely hosted in a cloud or actually built for one?

Service models: who manages what

The models differ in where your responsibility stops. Everything below that line is the provider's.

ModelYou manageProvider managesExample shape
IaaS (Infrastructure as a Service)OS, runtime, application, dataServers, storage, network, virtualizationA virtual machine you patch yourself
PaaS (Platform as a Service)Application and dataEverything beneath, including OS and runtimePush code, the platform builds and runs it
CaaS (Container as a Service)Container images and their configOrchestration, nodes and the control planeA managed Kubernetes service
FaaS (Function as a Service)Function codeServers, scaling to zero, per-invocation billingEvent-triggered functions
SaaS (Software as a Service)Your users and settingsThe whole applicationHosted email or CRM

Exam signal

"You deploy containers but never patch the control plane or the nodes' hardware" is CaaS. "You write a function and are billed per invocation" is FaaS, the building block behind serverless. "Only the application and data are yours" is PaaS.

Deployment models: where it runs

ModelMeaningReach for it when
Public cloudA provider's shared infrastructure, rented on demandElastic demand, no hardware to own
Private cloudCloud-style infrastructure used by one organization, on-premises or hostedStrict data residency or regulation
Hybrid cloudPrivate and public environments connected and used togetherBurst to public capacity, or migrate in stages
MulticloudServices from more than one public providerAvoiding lock-in, or choosing the best service per task
  • Hybrid is about connecting two kinds of environment. Multicloud is about using several providers. A company can be both.
  • Kubernetes gives workloads the same API in every one of these places, which is why it is the common layer for hybrid and multicloud.

Virtualization, containerization, orchestration

Virtual machineContainerHardwareHypervisorGuest OS per VMAppHardwareHost OS and kernelContainer runtimeApp
A VM carries its own guest OS on a hypervisor. A container shares the host kernel, so it starts faster and weighs less.
5
Service models: IaaS, PaaS, CaaS, FaaS, SaaS.
4
Deployment models: public, private, hybrid, multicloud.
Shared kernel
Why containers start faster than VMs and isolate less strongly.
VirtualizationContainerizationOrchestration
What it doesSplits one machine into several VMsPackages an app with its dependencies, isolated on a shared kernelSchedules, scales, heals and connects many containers across many nodes
IsolationStrong: separate kernelsLighter: namespaces and cgroupsn/a, it manages containers
Start timeMinutesSeconds or lessn/a
Typical toolA hypervisorA container runtimeKubernetes
  • A container is not a small VM. It is an ordinary process that the kernel restricts. See Containers and runtimes.
  • Orchestration is what turns "I can run a container" into "I can run a thousand, and keep them healthy".

Containers are not more secure VMs

Containers share one kernel, so a kernel flaw affects all of them. That is why sandboxed runtimes such as Kata Containers and gVisor exist: they add a stronger boundary where it matters.

Cloud and cloud native are different things

  • Cloud computing is a way to consume infrastructure: on demand, metered, elastic.
  • Cloud native is a way to build applications so they use that elasticity well: containers, microservices, declarative APIs, automation. See Cloud native principles.
  • A monolith copied onto a rented VM is lift and shift. It runs in the cloud but is not cloud native.
  • A cloud native application can also run on-premises, as long as it has the same properties.

Other background terms

TermMeaning
StatelessThe app keeps no data between requests. Any replica can serve any request, so it scales and restarts freely
StatefulThe app depends on data that must survive restarts, such as a database. It needs stable identity and storage
IngressTraffic entering the cluster from outside (north-south)
EgressTraffic leaving the cluster to outside services
DeclarativeYou state the desired result and the system works out the steps
ImperativeYou give the steps in order
  • Kubernetes handles stateless apps best with a Deployment and stateful ones with a StatefulSet. See Core objects.
  • Ingress here is a traffic direction. The Kubernetes Ingress object is one way to implement it. See Networking.

Where Kubernetes came from

StepWhat changed
Linux containers (LXC)Namespaces and cgroups made process isolation usable, but tooling was hard
DockerMade building, shipping and running containers easy with images and a registry
OCIStandard image and runtime specs, so tools interoperate and no vendor owns the format
KubernetesOpen source orchestrator, donated to the CNCF in 2015, built on lessons from Google's internal systems
  • Alternatives to Kubernetes exist: Docker Swarm, HashiCorp Nomad and Apache Mesos with Marathon. Kubernetes won on ecosystem, extensibility and vendor support.
  • OpenShift is a Red Hat platform built on Kubernetes. It adds opinionated defaults, a build system and a console. It is a distribution of Kubernetes, not an alternative to it.
TrendOne-line meaning
Platform engineeringA team builds an internal developer platform on Kubernetes so developers self-serve (Backstage is a CNCF portal project)
Edge computingRunning workloads near users or devices. Lightweight distributions such as k3s and projects such as KubeEdge target it
WebAssemblyA portable, sandboxed binary format. Some runtimes run Wasm modules instead of containers
AI and ML workloadsGPUs scheduled through device plug-ins, training and serving pipelines on Kubernetes (Kubeflow)
Vector databasesStores for embeddings used by AI search. They run on Kubernetes as stateful workloads

Trend names are rarely the answer

These terms appear as distractors or as context. A question about how to run a stateful vector database still resolves to a StatefulSet and persistent volumes, and a question about self-service platforms still resolves to a platform team, not a new Kubernetes object.

Scenarios

Scenario
A retailer wants to ship container images to a managed platform that runs them, scales them and operates the control plane, while the retailer keeps responsibility only for the images and their configuration. Which service model is this?
Scenario
A bank keeps customer records in its own data centre but runs bursty reporting jobs on rented capacity from a public provider, connected by a private link. Which deployment model is this?
Scenario
Which statement correctly contrasts virtual machines with containers?

Further reading

On this page