The cloud
Cloud computing means renting computers over the internet instead of owning them. NIST, the US standards body, defines it as on-demand network access to a shared pool of servers, storage and services that you can take and release quickly.
The worked example
Our worked example is app.py, a tiny Python web app. A web server calls the function app for every visit, and it answers 200 OK with the text Hello, cloud! We will run this same file four different ways.
Running app.py takes six layers, bottom to top: hardware, virtualization (software that splits one machine into several virtual ones), an operating system, a runtime (here Python), the app itself and its data. Someone must keep every layer working.
Who runs which layer
Before the cloud, the usual way was on-premises: you buy the servers, keep them in your own building and run all six layers yourself, from swapping broken disks to installing Python. The most control, and the most work.
Infrastructure as a Service (IaaS): the provider runs the hardware and virtualization and rents you a virtual machine. You still install and patch (update) the operating system, Python and app.py. Examples: Amazon EC2, Google Compute Engine, Azure Virtual Machines.
Platform as a Service (PaaS): you upload app.py and look after its data. The platform supplies the operating system and Python, starts your app and keeps it running. Examples: Google App Engine, AWS Elastic Beanstalk, Azure App Service.
Software as a Service (SaaS): the provider runs the whole app, and you simply use it, often in a web browser. You write no code, so app.py is not needed here. Examples: Gmail, Microsoft 365, Salesforce.
Sharing the work
Some jobs never move to the provider. Microsoft's shared responsibility guide says you always keep your data, your devices, your accounts and who may access them, whichever model you choose. The provider guards its layers; you guard yours.
Left to right, the line between the provider and you moves up the stack. The provider runs more and you run less: less to patch, but less control over the layers below the line. Choose the model that fits what you need to control.
What happens
;; step 1/9 · cloud cloud computing (NIST SP 800-145): on-demand network access to a shared pool of computing resources taken and released quickly five traits: on-demand self-service, broad network access, resource pooling, rapid elasticity, measured service three service models: IaaS, PaaS, SaaS
The six-layer stack is a common teaching picture; providers draw it with more rows (networking, storage, middleware, identity) and the exact split differs from service to service. The lines blur in practice: AWS Elastic Beanstalk, for example, runs your app on EC2 virtual machines you can still log into, and many services sit between the three classic models (containers as a service, serverless functions).