Sub topic 13
Comparing the Three Models Side by Side
This chapter puts IaaS, PaaS, and SaaS next to each other. It assumes you already know what each model provides, what a server, operating system, and application are, and basic networking terms such as IP address and HTTP. Earlier chapters covered the individual models and the shared responsibility split. Here the goal is to compare them on the same axes so you can see the pattern and its exceptions.
The Core Pattern: Moving Up the Stack
Every service model answers one question: which layers of the stack does the provider run for you? The layers, from bottom to top, are:
- Physical facilities and hardware (data centers, servers, storage, network)
- Virtualization
- Operating system
- Runtime and middleware
- Application code
- Data and configuration
Moving from IaaS to PaaS to SaaS, the provider takes over more layers. You give up control in exchange for less work.
Data and configuration stay with you in all three models. Even in SaaS, you decide who has access, what data is entered, and how the product is configured. That point matters later when we compare security duties.
The Comparison Table
| Dimension | IaaS | PaaS | SaaS |
|---|---|---|---|
| What you get | Virtual machines, storage, networks | A managed environment to run your code | A finished application |
| You manage | OS, runtime, application, data | Application code, data, app settings | Data, users, configuration |
| Provider manages | Hardware, virtualization | Hardware, OS, runtime, scaling | Everything except your data and settings |
| Control | Highest | Medium | Lowest |
| Setup effort | Highest | Medium | Lowest |
| Flexibility | Run almost any software | Limited to supported languages and services | Limited to the product's features |
| Typical cost basis | Per instance-hour, per GB | Per instance or per request, plus add-ons | Per user per month, or per usage tier |
| Typical user | Infrastructure and operations teams | Developers | End users and business teams |
| Example on AWS | Amazon EC2 | AWS Elastic Beanstalk | Amazon Chime-style hosted tools, or third-party products |
The table is a starting point. Real services rarely sit exactly on one row, so the sections below look at each axis more closely.
Control Versus Effort
Control and effort move together. If you can change the kernel settings on a virtual machine, you must also patch that kernel. If you cannot touch the operating system on a platform, you do not need to patch it either.
Compare the same small task in each model: serving a web page that says hello.
- On IaaS you launch a machine, connect to it, install a web server and runtime, open the firewall port, and keep the system updated.
- On PaaS you hand over application code and the platform does the rest.
- On SaaS you do not write the application. You configure a hosted product, such as a website builder, and publish.
The IaaS launch looks like this:
# IaaS: you choose the machine image and size, then manage the OS and everything above it.
# The AMI ID below is a placeholder; use an image ID that exists in your region.
aws ec2 run-instances \
--image-id ami-0123456789abcdef0 \
--instance-type t3.micro \
--count 1That command finishes in seconds, but the work is only starting. The instance has no application on it, and you now own patching, hardening, and monitoring.
On PaaS the application can be as small as this Flask app:
from flask import Flask
application = Flask(__name__)
@application.route("/")
def index():
return "Hello from a PaaS-hosted app"The variable is named application because Elastic Beanstalk's Python platform looks for that name by default. This is a typical PaaS convention. The platform dictates some of your code's shape in return for doing the operations work.
# PaaS: deploy application code to a managed platform (AWS Elastic Beanstalk CLI).
eb init my-app --platform python --region us-east-1
eb create my-app-env
eb deployOn SaaS you call or use a finished product:
# SaaS: you consume the finished product through its interface or API.
# api.example.com and API_TOKEN are placeholders.
curl -H "Authorization: Bearer $API_TOKEN" \
https://api.example.com/v1/contactsNotice what disappears as you go down the list: machine images, platform names, and finally any mention of servers at all.
Flexibility and Constraints
Flexibility is the mirror image of convenience.
- IaaS lets you run legacy software, custom network layouts, unusual databases, or a specific kernel version. The cost is that you must build and operate all of it.
- PaaS supports a defined set of languages, versions, and services. If your application needs a native library the platform does not allow, or a background process that does not fit its model, you hit a wall.
- SaaS offers only the features, integrations, and customization options the vendor built. You can often extend it through settings, plugins, or an API, but you cannot change how it works inside.
A common failure is choosing a higher-level model for its convenience and discovering a missing capability late in the project. Test your hardest requirement first, not your easiest one.
Responsibility and Security
Under shared responsibility, the provider secures the layers it runs, and you secure the rest. The practical consequences differ by model:
| Task | IaaS | PaaS | SaaS |
|---|---|---|---|
| Physical security | Provider | Provider | Provider |
| Operating system patches | You | Provider | Provider |
| Runtime and library updates | You | Shared (you update your dependencies) | Provider |
| Network firewall rules | You | Shared | Provider |
| Application vulnerabilities | You | You | Provider |
| Access control and identities | You | You | You |
| Data protection and backups | You | You | You (often shared with vendor) |
Two points cause the most confusion:
- Moving up does not remove your security duties. Misconfigured access and exposed data are customer-side failures in every model, including SaaS.
- PaaS is shared in the middle. The platform patches the runtime, but your own dependencies, such as the Flask version listed in your requirements file, remain your job.
Cost Behavior
Cost depends on both the price list and how much staff time the model consumes.
- IaaS usually has the lowest price per unit of compute. It has the highest labor cost, because someone must operate the systems. An idle virtual machine still bills while it is running.
- PaaS costs more per unit of compute than raw IaaS, but it saves operations effort. Some platforms bill for the underlying instances, so an idle environment still costs money.
- SaaS is predictable. A per-user monthly fee is easy to budget, but it grows linearly with headcount and can exceed the cost of building and running your own system at large scale.
A rough comparison for the same small web application:
| Cost item | IaaS | PaaS | SaaS |
|---|---|---|---|
| Compute price | Low | Medium | Bundled |
| Staff time for operations | High | Low | Very low |
| Cost predictability | Medium | Medium | High |
| Cost at very large scale | Often lowest | Can rise sharply | Can rise sharply |
The figures are qualitative on purpose. Real prices vary by provider, region, and usage, so check current price lists and model the workload before deciding.
Scaling and Reliability
Scaling means different work in each model.
- On IaaS you design scaling yourself. You decide when to add machines, put a load balancer in front, and spread them across availability zones.
- On PaaS the platform usually scales for you within limits you configure, such as a minimum and maximum instance count.
- On SaaS the vendor scales the product, and your only limits are plan quotas and rate limits.
Reliability follows the same pattern. The provider's service-level agreement (SLA) covers what the provider operates. On IaaS that is the virtual hardware, so an application on a single instance can still fail with no recovery. Your architecture decides the outcome.
Common Mistakes When Comparing
- Treating the models as a strict ranking. Higher is not better. Each is right for different workloads.
- Forgetting labor cost. A cheap instance that needs weekly patching may cost more than a platform.
- Assuming one model per system. Most real systems mix them: a custom application on IaaS or PaaS, a managed database, and SaaS tools for email and customer management.
- Ignoring exit cost. Higher-level models tie you more closely to vendor-specific features. A later chapter covers lock-in in detail.
- Confusing the product with the model. One vendor product can behave like IaaS for one feature and PaaS for another. Judge by which layers you actually manage.
Putting It Together
Use these questions to locate a given service on the spectrum:
- Can you log in to the operating system? If yes, you are at IaaS or close to it.
- Do you deploy your own code but never see the OS? That is PaaS.
- Do you only use features someone else built? That is SaaS.
Exercise
A team runs a custom Java application that needs a specific native library installed on the operating system. The team wants to minimize patching work but cannot change the library. Which model is the most likely fit among IaaS, PaaS, and SaaS, and what do they take on in return?
Show answer
IaaS is the most likely fit, because only IaaS gives access to the operating system to install the native library. In return, the team takes on OS patching, runtime updates, network rules, and scaling design. If the platform of a PaaS offered a way to bundle the library, for example through custom containers or platform extensions, PaaS would reduce the patching work, so the team should check that option before committing.
Exercise
In which model do you still have security responsibilities for access control and data, and why?
Show answer
In all three, including SaaS. The provider secures the layers it operates, but you decide who has access and what data goes in. Misconfigured permissions or exposed data are the customer's responsibility under every service model.