When somebody says "let's move it to the cloud", one fundamental question is left unanswered: which part will you manage and which part will the provider manage? Renting an empty virtual machine is not the same as uploading your code to a platform that runs it, or subscribing to an application that is already finished. These three ways of consuming the cloud are the service models: IaaS, PaaS, and SaaS. Choosing well between them determines how much control you will have, how much work you will save, which skills you will need on your team, and how you will pay. In this lesson we will define each model, compare them layer by layer, look at analogies that help you remember them, get to know real services of each type, and draw a first intuitive map of where each of Hortalia's systems might fit.

  1. Definition of the three service models

1.1 IaaS: Infrastructure as a Service

The provider offers the basic building blocks of infrastructure (virtual machines, storage, networking) on demand. The customer decides on the operating system, installs it or picks it from an image, and manages everything above it: patches, software, databases, applications, and data.

  • Key idea: "I rent you the virtual server; what you do with it is up to you".
  • Who uses it: system administrators, infrastructure teams, and DevOps.

1.2 PaaS: Platform as a Service

The provider offers a platform ready to run applications: operating system, runtime environment (Python or Java, for example), scaling, load balancing, and often managed databases. The customer supplies their code and their data and configures the application.

  • Key idea: "Give me your code and I will run it, scale it, and keep it up to date".
  • Who uses it: developers and product teams.

1.3 SaaS: Software as a Service

The provider offers a complete application, normally reached from a browser or an app, running on their infrastructure. The customer only uses and configures the application: users, permissions, settings, and their own data.

  • Key idea: "Here is the finished application; all you have to do is use it".
  • Who uses it: business users in any area (sales, finance, HR), managed by IT.

Each model is studied in depth in its own module: IaaS, PaaS, and SaaS.

  1. The layer stack: who manages what

Any piece of software rests on a stack of layers. In the table they appear from top to bottom, from the one closest to the user to the most physical:

Layer What it is Example in Hortalia's ERP
Application The software the business uses The ERP program
Data The information the application handles Customers, orders, invoices, stock
Runtime (execution environment) What the code needs in order to run The .NET Framework the ERP requires
Middleware Intermediate software: application servers, databases, queues SQL Server
Operating system Manages the hardware (real or virtual) and provides basic services Windows Server
Virtualization Hypervisor that creates virtual machines Does not exist today (physical server)
Servers Compute hardware: CPU and memory The 2017 server
Storage Disks and storage systems The server's disks and the USB backup drive
Network Cabling, switches, routers, internet connection The warehouse switch and the fibre line

Each service model draws a line across this stack: below it the provider manages; above it, the customer.

Layer On-premises IaaS PaaS SaaS
Application Customer Customer Customer Provider
Data Customer Customer Customer Customer*
Runtime Customer Customer Provider Provider
Middleware Customer Customer Provider Provider
Operating system Customer Customer Provider Provider
Virtualization Customer Provider Provider Provider
Servers Customer Provider Provider Provider
Storage Customer Provider Provider Provider
Network Customer Provider Provider Provider

* In SaaS the provider stores the data and protects its infrastructure, but the data still belongs to the customer, who decides what goes in, who has access, and how it is used. We will go deeper into this nuance in The Shared Responsibility Model.

flowchart LR
    subgraph OP["On-premises"]
        direction TB
        o1["Application"]:::cli --> o2["Data"]:::cli --> o3["Runtime"]:::cli --> o4["Middleware"]:::cli --> o5["OS"]:::cli --> o6["Virtualization"]:::cli --> o7["Servers"]:::cli --> o8["Storage"]:::cli --> o9["Network"]:::cli
    end
    subgraph IA["IaaS"]
        direction TB
        i1["Application"]:::cli --> i2["Data"]:::cli --> i3["Runtime"]:::cli --> i4["Middleware"]:::cli --> i5["OS"]:::cli --> i6["Virtualization"]:::pro --> i7["Servers"]:::pro --> i8["Storage"]:::pro --> i9["Network"]:::pro
    end
    subgraph PA["PaaS"]
        direction TB
        p1["Application"]:::cli --> p2["Data"]:::cli --> p3["Runtime"]:::pro --> p4["Middleware"]:::pro --> p5["OS"]:::pro --> p6["Virtualization"]:::pro --> p7["Servers"]:::pro --> p8["Storage"]:::pro --> p9["Network"]:::pro
    end
    subgraph SA["SaaS"]
        direction TB
        s1["Application"]:::pro --> s2["Data"]:::cli --> s3["Runtime"]:::pro --> s4["Middleware"]:::pro --> s5["OS"]:::pro --> s6["Virtualization"]:::pro --> s7["Servers"]:::pro --> s8["Storage"]:::pro --> s9["Network"]:::pro
    end
    classDef cli fill:#fde2b3,stroke:#b36b00,color:#000
    classDef pro fill:#bfe3c9,stroke:#2e7d32,color:#000

Orange: managed by the customer. Green: managed by the provider.

Notice the trend: as you move from on-premises to SaaS, the line rises and the customer manages fewer and fewer layers. In practice, the boundaries are not always that clean: with a managed database (PaaS), for example, the customer still decides the size, the indexes, or the maintenance window. The table is a mental model, not a contract; each specific service documents its own responsibilities.

  1. Two analogies to make it click

3.1 Pizza as a service

This is the industry's classic analogy. Imagine you want pizza for dinner:

Model Situation What you provide What somebody else provides
On-premises You make it at home from scratch Dough, toppings, oven, gas, table, drinks Nothing
IaaS You buy a ready-made pizza and bake it at home Oven, gas, table, drinks The pizza, already prepared
PaaS You order pizza for delivery Table, drinks Pizza prepared and baked
SaaS You eat at a pizzeria You just pick from the menu and eat Everything else

In all four cases you have pizza for dinner (the business outcome), but what changes is how much work you do and how much control you have: at home you can choose every ingredient; at the pizzeria you choose from what is on the menu.

3.2 Transport

Another useful analogy, especially for management audiences:

Model Transport You take care of... You are spared...
On-premises Your own car Buying it, insurance, maintenance, driving, parking Nothing, but you have total control
IaaS A rental car Driving, choosing the route, fuel Purchase, insurance, maintenance
PaaS A taxi or ride-hailing car Saying where you want to go Driving, on top of everything above
SaaS A bus Getting on at the right stop Everything; but the route and timetable are set by the operator

Look at the step from PaaS to SaaS: in the taxi you decide the destination (your application does what you program it to do); on the bus you can only choose among the existing routes (the SaaS application does what the provider designed, with the configuration options it offers).

  1. Control versus convenience

The practical consequence of the layer stack is a trade-off between control and convenience:

flowchart LR
    A["On-premises<br/>Maximum control<br/>Maximum effort"] --> B["IaaS"] --> C["PaaS"] --> D["SaaS<br/>Minimum control<br/>Minimum effort"]
Criterion IaaS PaaS SaaS
Control over the configuration High (OS, software, network) Medium (application and platform settings) Low (whatever options the application offers)
Operating effort High: patching, backups, OS monitoring Medium: code, deployments, data Low: users, permissions, configuration
Skills needed Systems, networking, DevOps Development, DevOps Functional administration, key users
Time until it is up and running Hours to days Minutes to hours (if the code exists) Minutes to days
Customisation Total High within what the platform supports Limited to configuration and integrations
Fit with legacy applications Very good Middling: may require adapting the code Only if an equivalent SaaS exists
Typical pricing model Per resource and time (vCPU-hour, GB-month) Per resource, instance, or execution Per user per month or by volume of use

There is no "best" model: there is a more suitable model for each need. A practical rule to start from: the less differentiating something is for your business, the higher up the stack (towards SaaS) you should go. Email does not make Hortalia any different from its competitors; its online store perhaps does.

  1. Examples of real services

Model AWS Microsoft Azure Google Cloud Other examples
IaaS Amazon EC2, Amazon EBS, Amazon VPC Azure Virtual Machines, Azure Managed Disks, Azure Virtual Network Compute Engine, Persistent Disk, VPC Oracle Cloud Infrastructure, OVHcloud, Hetzner Cloud, DigitalOcean Droplets
PaaS AWS Elastic Beanstalk, Amazon RDS, AWS Amplify Hosting Azure App Service, Azure SQL Database, Azure Database for PostgreSQL App Engine, Cloud Run, Cloud SQL Heroku, Render, Fly.io
SaaS Amazon Connect, Amazon QuickSight Microsoft 365, Dynamics 365 Google Workspace Salesforce, HubSpot, Zoom, Slack, Holded, Factorial

Notice that the large providers offer services in all three models, and that the SaaS most used in companies is frequently supplied by firms specialising in one particular application (CRM, video conferencing, human resources, accounting...).

To see the difference in effort, compare how Marc's store would be launched on IaaS and on PaaS (simplified, purely illustrative commands):

# IaaS option: create a VM and then set it up by hand
gcloud compute instances create hortalia-shop-vm \
    --zone=europe-southwest1-a --machine-type=e2-medium \
    --image-family=debian-12 --image-project=debian-cloud
# ...and then: connect over SSH, install Python, a web server,
# PostgreSQL, configure the firewall, the certificates, the backups,
# the scaling, apply patches every month...

# PaaS option: hand over the code and let the platform do the rest
gcloud run deploy hortalia-shop --source . --region=europe-southwest1

Explanation:

  • In the IaaS option, gcloud compute instances create creates a virtual machine in Compute Engine: we choose the zone (--zone), the size (--machine-type), and the operating system (Debian 12, through --image-family and --image-project). The command finishes in seconds, but what we get is an empty machine: all the later work, listed in the comments, is Marc's or Laura's responsibility.
  • In the PaaS option, gcloud run deploy takes the source code from the current directory (--source .), packages it, deploys it to Cloud Run in the Madrid region, and returns a public URL with HTTPS. The platform takes care of the operating system, of scaling according to requests, and of patching.
  • The SaaS option does not appear because there is nothing to deploy: if Hortalia used a SaaS e-commerce platform, it would create an account and configure the store from the browser, in exchange for sticking to whatever that platform allows.

  1. Other "XaaS": variants and specialisations

Over time many acronyms of the "something as a service" shape have appeared (XaaS, anything as a service). Most of them are variants or specialisations of the three main models:

Acronym Name Closest to Examples
CaaS Containers as a Service Between IaaS and PaaS Amazon EKS/ECS, Azure Kubernetes Service, Google Kubernetes Engine
DBaaS Database as a Service PaaS Amazon RDS, Azure SQL Database, Cloud SQL
FaaS Functions as a Service (serverless) PaaS AWS Lambda, Azure Functions, Cloud Run functions
STaaS Storage as a Service IaaS Amazon S3, Azure Blob Storage, Cloud Storage
DaaS Desktop as a Service Between IaaS and SaaS Amazon WorkSpaces, Azure Virtual Desktop, Windows 365

For now it is enough to recognise them. We will study the platform variants (managed databases, containers, and serverless) in Types of PaaS.

  1. A first intuitive map of Hortalia

Laura does a first exercise: placing each of Hortalia's systems in the model that, at first sight, looks most natural. This is not a final decision: we will take that one with criteria, costs, security, and a migration strategy in module 5.

flowchart TB
    subgraph H["Hortalia's systems"]
        ERP["Legacy ERP<br/>Windows Server + SQL Server"]
        SHOP["hortalia-shop store<br/>Python/Flask + PostgreSQL"]
        MAIL["Email"]
        CRM["Customer records<br/>(Excel spreadsheets)"]
    end
    ERP --> IAAS["IaaS<br/>(candidate)"]
    SHOP --> PAAS["PaaS<br/>(candidate)"]
    MAIL --> SAAS["SaaS<br/>(candidate)"]
    CRM --> SAAS
System Candidate model Intuitive reasoning Open questions
Legacy ERP IaaS It is third-party software that needs Windows Server and SQL Server exactly as they are today. Moving it onto a VM ("lift and shift") is the least invasive route: the application does not have to be touched Is there a SaaS version of the ERP? Could a managed database be used for SQL Server? What about the licenses?
hortalia-shop store PaaS It is modern, in-house code with sharp peaks. Marc wants to write code, not administer servers, and the platform can scale by itself at Christmas Which specific PaaS service? A managed PostgreSQL database? How much does it cost at the peaks?
Email SaaS It is not differentiating for the business and there are mature suites (Microsoft 365, Google Workspace) that do away with the ageing server Which suite? How are the mailboxes migrated?
Customers in Excel SaaS (CRM) A cloud CRM brings history, mobile access for the sales reps, and version control without developing anything Which CRM? How does it integrate with the ERP and the store?

The interesting thing about this map is that Hortalia will probably use all three models at once, each for what it fits best. That combination is the norm in real companies, not the exception.

Common Mistakes and Tips

  • Thinking one model is "better" than another in the abstract. It depends on the workload, the team, and the business.
  • Believing that in SaaS the data belongs to the provider. The provider looks after the infrastructure; ownership and proper use of the data remain the customer's.
  • Confusing PaaS with "there are no servers". There are; you just do not manage them.
  • Putting everything on IaaS "because it is what we know". It is tempting for an infrastructure team, but it means carrying on patching and administering operating systems; sometimes a PaaS or a SaaS would save a great deal of work.
  • Choosing SaaS without checking whether it fits your processes. You will have to adapt to whatever the product allows.
  • Tip: for each system, ask yourself "which layers do I want to keep managing, and why?". If you cannot find a good reason for managing a layer, it is probably worth moving up the stack.

Exercises

Exercise 1. State the service model (IaaS, PaaS, or SaaS) in each case: a) Hortalia subscribes to Google Workspace for 120 users; b) Marc deploys the store to Azure App Service; c) Laura creates a Windows VM on Amazon EC2 and installs the ERP; d) Sara uses Holded for accounting; e) Marc uses Amazon RDS for PostgreSQL as the store's database.

Exercise 2. For each layer of the stack, say who manages it if Hortalia's store is deployed on a PaaS: network, storage, servers, virtualization, operating system, middleware, runtime, data, and application.

Exercise 3. A new system: Hortalia wants an application for delivery drivers to record deliveries from their phones (customer signature and photo). Propose a candidate model, reasoning with the criteria of control, effort, and differentiation. Consider at least two alternatives.

Solutions

Solution 1. a) SaaS; b) PaaS; c) IaaS; d) SaaS; e) PaaS (specifically DBaaS, a variant of PaaS).

Solution 2. Network, storage, servers, virtualization, operating system, middleware, and runtime: the provider. Data and application: Hortalia (Marc). One nuance: Marc still decides platform settings (size, maximum number of instances, Python version), even though he does not administer them directly.

Common mistake: assigning the operating system to the customer in PaaS. In PaaS you neither choose nor patch the OS; at most you choose the runtime version.

Solution 3 (suggested).

  • SaaS alternative: there are route management and proof-of-delivery applications that already offer signature, photo, and tracking. Less effort and a quick launch; less customisation. It is the option to recommend if Hortalia's delivery process is standard.
  • PaaS alternative: developing an in-house app with a backend on a PaaS. Maximum fit with Hortalia's processes and tailored integration with the ERP, but it demands development time from Marc, who is already busy with the store.
  • Reasoning: recording deliveries does not look differentiating for a fruit distributor, so, following the practical rule, we would start by evaluating SaaS and only move to PaaS if no product covers an important requirement. IaaS would make no sense: it would add server administration without contributing anything.

Conclusion

In this lesson you have learned that the service models differ in where the line is drawn across the layer stack: in IaaS the provider manages up to virtualization; in PaaS, also the operating system, the middleware, and the runtime; in SaaS, the complete application. The pizza and transport analogies show the trade-off between control and convenience, and you have seen real examples of each model, the XaaS variants, and a first map of Hortalia: ERP → IaaS, store → PaaS, email and customers → SaaS, still as a hypothesis.

There is one thing we have deliberately left until last: if the provider manages some layers and the customer others, who is responsible for the security of each one? What happens if someone leaves the store's customer data exposed? Answering this precisely is crucial, and we will do it in the next lesson: The Shared Responsibility Model.

© Copyright 2026. All rights reserved