The idea: renting computing, at different heights of the stack

Running a web shop needs a whole stack: hardware, a virtualisation layer, an operating system, a language runtime, the shop application and its data. Cloud computing lets you rent part of that stack from a provider instead of owning it. The question is always the same: which layers do you still manage, and who else shares the machines?

Three columns. Five essential characteristics: on-demand self-service, broad network access, resource pooling, rapid elasticity, measured service. Three service models: SaaS, PaaS, IaaS. Four deployment models: private, community, public, hybrid.
The NIST definition in one picture: five characteristics make it a cloud, three service models say how much you rent, four deployment models say who shares the hardware.

The page follows the NIST definition (SP 800-145). The top panel draws one shop stack four times and colours each layer by who manages it. The bottom panel runs a Black Friday evening on three kinds of cloud and keeps the bill.

Five essential characteristics

NIST calls something a cloud only if it has all five. The chips in the bottom panel light up when a step uses one.

  • On-demand self-service: you get a server by calling an API or clicking a button. No person at the provider has to approve it.
  • Broad network access: everything is reached over the network with standard protocols, from phones, laptops and other servers.
  • Resource pooling: the provider's machines are shared by many customers (tenants). You do not know or choose the exact machine.
  • Rapid elasticity: capacity grows and shrinks quickly, often automatically, so it seems unlimited.
  • Measured service: use is metered (instance-hours, gigabytes, requests), and you pay for what was measured.

Three service models: IaaS, PaaS, SaaS

The service models differ in how far up the stack the provider goes.

  • IaaS (Infrastructure as a Service): you rent virtual machines, storage and networks. The provider runs the hardware and the hypervisor; you install and patch the operating system and everything above it. Example: a rented VM.
  • PaaS (Platform as a Service): you hand over your code; the provider runs the OS and the runtime for it. Example: an app platform where you push code and it runs.
  • SaaS (Software as a Service): you use a finished application over the network. Example: a hosted shop service, webmail.
LayerOn-premisesIaaSPaaSSaaS
data & usersyouyouyouyou
applicationyouyouyouprovider
runtimeyouyouproviderprovider
operating systemyouyouproviderprovider
virtualisationyouproviderproviderprovider
hardwareyouproviderproviderprovider
layers you manage6421

A task makes the table concrete. Demo: who patches the OS? sends an "OS patch" ticket into all four stacks: you patch it on-premises and on IaaS, the provider does it on PaaS and SaaS (2 of 4 each). In Demo: a disk fails you replace the disk only on-premises; in the three cloud models it is the provider's job (you 1 of 4). A bug in the shop code is yours in three models and the provider's only in SaaS.

Shared responsibility

Moving up the stack hands over work, not all of the responsibility. The top layer, your data and who can reach it (user accounts, passwords, access rights), stays yours in every model. Demo: a leaked account is always yours shows it: the ticket lands on "data & users" and you handle it 4 times out of 4. A SaaS provider keeps its servers patched, but it cannot know that one of your staff should no longer log in. Many cloud data leaks start in this top layer: storage left open to everyone, or a weak password, not from the provider's hardware.

Four deployment models

  • Private cloud: the cloud runs for one organisation only, in its own data centre or hosted for it. You buy the servers, so their cost is fixed.
  • Community cloud: shared by a group of organisations with the same needs, for example several hospitals or government agencies. The page does not draw it.
  • Public cloud: open to anyone who pays, run by a provider in its own regions and shared by many tenants.
  • Hybrid cloud: two or more of these joined by a network link (here a VPN), so that work can move between them.

Cloud bursting on Black Friday

The shop's normal load is 300 requests per second. On Black Friday it climbs to 1,000 req/s for two hours. One server serves up to 100 req/s. The page uses toy prices to keep the arithmetic easy (they are not real prices): an owned server costs 10 units per hour whether it is busy or idle, and a rented instance costs 15 units per hour while it runs.

Demo: hybrid: burst to public and back keeps the 4 owned servers busy with the normal load and bursts the overflow into a public region: 2 instances at 20:00, 6 at 21:00 and 22:00, 2 at 23:00, none after. Each launch is one API call (on-demand self-service), each termination stops the meter at once (rapid elasticity, measured service).

DeploymentOwnedRented instance-hoursRefusedBill
private, 4 servers405,760,000 requests āœ—320
private, 10 servers (sized for the peak)1000800
public only0440660
hybrid: 4 owned + burst4160560

Demo: Black Friday, private cloud only is the cheapest, but it turns away 1,600 req/s over four hours: 36% of the evening's requests. Demo: own enough servers for the peak serves everyone, but the 10 servers are only 55% busy on average and cost the most. Demo: compare the four bills draws all four bill lines.

Owned vs pay-per-use

Renting costs more per hour, owning costs money every hour. So the answer depends on how many hours a server is really needed.

Three rows of eight hour cells. A server needed all 8 hours costs 80 owned and 120 rented, so owning wins. Needed 4 of 8 hours: 80 owned, 60 rented. Needed 2 of 8 hours: 80 owned, 30 rented, so renting wins.
With these toy prices, renting wins for any server needed less than 2/3 of the hours; steady load is cheaper to own.

That rule explains the table. Servers 1 to 3 are needed every hour, so owning them is right. Server 4 is needed only from 20:00 to 23:00 (4 of 8 hours), so even it would be cheaper to rent: 3 owned servers plus a burst of 20 instance-hours costs 240 + 300 = 540, less than the 560 of the hybrid on the page. Real teams keep some headroom on owned servers anyway, because a full server is a slow server.

The rented virtual machines of IaaS are the VMs of containers vs VMs, and the hypervisor below them is shown in hypervisor VM exits. A provider can move a running VM to another host for maintenance without you noticing: see VM live migration. Bursting is horizontal scaling across two clouds; scale up vs scale out compares it with buying a bigger machine, and Kubernetes autoscaling shows how the number of pods and nodes follows the load. Serverless functions go one step past PaaS: you pay per request and nothing runs between calls, at the price of cold starts. Cloud IoT services keep a device shadow for each device: a SaaS-style service where the device state is still your data.

See also Data-Parallel Training, the kind of multi-GPU job that rented GPU instances run.

What the page leaves out

Real providers draw the service-model lines with more layers (networking, identity, middleware) and some managed services sit between the classic three. Serverless functions, containers as a service and other "X as a service" offers are not drawn. The community cloud is described but not animated. Real bursting takes minutes to launch instances and needs the application and its data to be reachable from both clouds (data transfer costs, latency over the VPN, licensing, data residency rules); the page launches instances at the start of each hour because the sale was known in advance. Real prices vary by provider, region, size and discounts for long commitments (reserved or spot capacity), and owned servers also cost power, cooling, space and staff; the page uses two flat toy prices.

On the mind map

Open the Operating Systems mind mapOperatingSystemsBoot and program start: from power on to main()Boot and program startProcesses and the kernel: how user code talks to the kernelProcesses and the kernelInterrupts and devices: hardware interrupts the CPUInterrupts and devicesScheduling and deadlock: who runs next, who gets whatScheduling and deadlockVirtual memory: every address is translatedVirtual memoryPhysical memory: who gets which bytes of RAMPhysical memoryFiles and storage: from open() down to the diskFiles and storageDisks and RAID: blocks down to platter or flashDisks and RAIDIsolation and security: limit what a process can doIsolation and securityPermissions and capabilitiesPermissions and capabilitieseuid against owner, group, other rwxContainer internalsContainer internalsnamespaces hide, cgroups limitDocker image layersDocker image layersread-only layers, cached by contentseccomp and eBPFseccomp and eBPFa BPF filter judges every syscallContainers vs VMsContainers vs VMsVM: own guest kernel; container: sharedCloud service modelsIaaS/PaaS/SaaS: who manages which layerHow a hypervisor runs a VMHow a hypervisor runs a VMGuest traps, VMM emulates, resumesVM live migrationVM live migrationCopy dirty pages until the rest fitsOpen the Operating Systems mind mapOperating Systemslimit what a process can doIsolation and securityPermissions and capabilitiesPermissions and capabilitieseuid against owner, group, other rwxContainer internalsContainer internalsnamespaces hide, cgroups limitDocker image layersDocker image layersread-only layers, cached by contentseccomp and eBPFseccomp and eBPFa BPF filter judges every syscallContainers vs VMsContainers vs VMsVM: own guest kernel; container: sharedCloud service modelsIaaS/PaaS/SaaS: who manages which layerHow a hypervisor runs a VMHow a hypervisor runs a VMGuest traps, VMM emulates, resumesVM live migrationVM live migrationCopy dirty pages until the rest fits
This page on the Operating Systems mind map · 78 pages in 9 branches · open it to see the whole map and test yourself in recall mode.