WHO RUNS EACH LAYERON-PREMISESHARDWAREVIRTUALIZATIONOPERATING SYSTEMRUNTIME · PYTHONAPP · APP.PYDATAIAASHARDWAREVIRTUALIZATIONOPERATING SYSTEMRUNTIME · PYTHONAPP · APP.PYDATAPAASHARDWAREVIRTUALIZATIONOPERATING SYSTEMRUNTIME · PYTHONAPP · APP.PYDATASAASHARDWAREVIRTUALIZATIONOPERATING SYSTEMRUNTIMEPROVIDER'S APPDATA1def app(environ, start_response):2 h = [("Content-Type", "text/plain")]3 start_response("200 OK", h)4 return [b"Hello, cloud!"]app.pyYOU RUN ITPROVIDER RUNS IT
Stacks: the six layers under an app, one stack per modelColour: green = the provider runs it, blue = you run itMovers: the provider / you line, and the app.py tokenFour ways to run the same app, each a stack of the same six layers: hardware, virtualization, operating system, runtime, app and data. Green layers are run by the cloud provider, blue ones by you. On-premises you run all six; IaaS hands over two, PaaS four, SaaS five, so the line between provider and you climbs from left to right. In front, the worked example, app.py, a four-line Python web app that hops onto the stack it runs on (SaaS needs none of your code). 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 cloud

  1. 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

Who runs which layer

Sharing the work

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).