Cloud

IaaS vs PaaS vs SaaS: Who Manages What and Which Should You Choose?

Choose SaaS when you need an existing application, PaaS when you want to deploy custom code on a supported managed runtime, and IaaS when the workload requires control of virtual infrastructure and the guest operating system. The real question is what your team has to operate and what the specific service supports.

IaaS vs PaaS vs SaaS at a glance

cloud service models

Infrastructure as a Service (IaaS), Platform as a Service (PaaS) and Software as a Service (SaaS) describe what a cloud provider supplies. IaaS supplies computing infrastructure, PaaS supplies an environment for running your own applications, and SaaS supplies a finished application. If AWS services, Azure regions or Google Cloud networking could change your decision, check the workload-based AWS, Azure, and Google Cloud comparison.

QuestionIaaSPaaSSaaS
What do you receive?Virtual machines, storage and networkingManaged deployment and application runtimeWorking application
What do you operate?Guest OS, installed software and workload configurationApplication code, data use and service configurationUsers, data access, settings and integrations
Who typically uses it?Infrastructure engineers and developersApplication developers and product teamsBusiness users and application administrators
What makes it attractive?OS and infrastructure controlCustom deployments with less platform administrationAn existing business capability
What can disqualify it?No capacity to manage the required software stackUnsupported runtime or mandatory system accessMissing required workflow, integration or customization

The NIST cloud computing definition established three service models alongside four separate deployment models in September 2011.

mixed cloud workloads

One company can run Google Workspace for collaboration, a managed platform for its customer portal and a virtual machine for a legacy component that needs particular OS settings. Each workload gets its own service model.

Who manages what? The shared-responsibility boundary

shared responsibility matrix

The further toward SaaS you go, the more the provider handles. Your data, identities and application decisions stay with you, and the boundary decides who patches, secures, configures, monitors and restores each part of a service.

For Amazon EC2, AWS’s shared-responsibility documentation assigns guest-OS updates, customer-installed application security and security-group settings to you. A managed application runtime shifts OS and runtime maintenance to the provider, while your code and configuration remain yours.

application duty allocation
Layer or taskIaaSPaaSSaaS
Facilities, physical hardware and virtualizationProviderProviderProvider
Guest-OS patchingTypically customerTypically providerProvider
Managed runtimeCustomer if installedTypically providerProvider
Core applicationCustomer for its applicationShared: provider-managed platform components; customer code and configurationProvider operates the SaaS application
Customer code, extensions and integrationsCustomerCustomerCustomer for its own supported customizations
Identities, accounts and permissionsCustomer administrationCustomer administrationCustomer administration
Customer data classification and retention choicesCustomerCustomerCustomer
Backups, restore and continuityCustomer planning; provider features varyShared or service-specificShared or service-specific
Client devicesCustomerCustomerShared management in Microsoft’s model; customer protects endpoints
Monitoring and incident responseCustomer workload duties plus provider infrastructureSharedShared

The SaaS device entry follows Microsoft’s responsibility matrix, which also keeps customer data, identities, accounts and configuration under customer accountability. Product terms and configuration options settle the duties for any particular service.

cloud owner worksheet

Assign a named owner

Turn the matrix into a short responsibility record. For guest-OS patching, application security, access administration, backups and incident escalation, write down whether the provider, you or both perform the task, name the internal owner and note the relevant section of the service documents. If nobody can start a restore, you have no recovery plan.

Real examples of IaaS, PaaS and SaaS

cloud product examples

AWS, Microsoft and Google Cloud each sell several service models, so classify the product and not the vendor.

One reader of r/cloudcomputing described the confusion:

I’ve read many definitions but I still don’t have a solid grasp on the differences. Software as a Service is easy because I can visualize Gmail, Dropbox, etc. Can anyone provide me with clear definitions of IaaS and PaaS and examples of each? When I was searching there were websites that listed Azure and AWS down for both .. which is not helpful lol Thank you!

r/cloudcomputing
OfferingModel illustrationWhat the customer receives
Amazon EC2IaaSVirtual computing infrastructure with customer guest-OS duties
Google Compute EngineIaaSVirtual-machine infrastructure
Google App EnginePaaSManaged environment for application deployment
Google Cloud RunPaaS-styleManaged execution for deployed application workloads
Google WorkspaceSaaSReady-to-use business applications

Google lists these product-level examples in its cloud service-model comparison. Azure Virtual Machines, Azure App Service and Microsoft 365 map to the three models in the same way.

service classification criteria

For an unfamiliar product, look at the level of OS access, supported code deployment, runtime constraints, data-export capability and the responsibilities you keep.

Which service model fits your workload?

workload selection matrix

Start with what the application must do and the one constraint it cannot work without. Then check whether your team has the skills to run the option that fits.

Workload goalStarting modelDeciding constraintReject the candidate if
Use an existing business applicationSaaSRequired workflow, integration and permissionsThe application cannot perform a mandatory business function
Deploy an application your team developsPaaSSupported runtime, deployment environment and dependenciesMandatory system access or technical dependency is unavailable
Operate a specialized or legacy applicationIaaSGuest-OS control and capacity to administer itThe required operations cannot be safely maintained
cloud recovery scenario

Recovery requirements can change the choice

A university IT manager described weighing an ERP move to Azure because the institution operated in a hurricane-prone area. It was a proposed evaluation, and the open question was whether the deployment had a restoration process and recovery objectives that met the university’s continuity needs.

Public, private and hybrid cloud describe how infrastructure is organized, which is a separate question from whether a workload uses IaaS, PaaS or SaaS. The checks for identity boundaries, recovery objectives, and network routes are explained in the cloud architecture workload assessment.

Control, operating effort and total cost

cloud operating cost

Count engineering time next to the invoice. IaaS requires more OS and application administration, PaaS moves selected platform tasks to the provider, and SaaS shifts the work to user administration, configuration and integrations.

List the costs for each service you consider:

  • Service charges: compute, runtime consumption or application subscriptions, under the offering’s billing terms.
  • Dependencies: storage, data transfer, managed databases, networking and other supporting services.
  • Operations: deployment, monitoring, guest-OS maintenance where it applies, incident response and support.
  • Continuity and exit: backups, restores, exports, migration work and integration changes.
  • People: the internal time and skills needed to run what remains yours.
managed platform billing

Google Cloud Run is one example. Its documentation describes request-based and instance-based billing configurations, and the setting you choose changes how the service is charged.

If your budget is fixed or your team is small, the cheapest-looking infrastructure option can still be the wrong one.

Data continuity, migration and the exit path

database migration continuity

Moving between managed services still requires decisions about data movement, application availability, recovery and who can step in if the move goes wrong. A managed database provider runs part of the platform, but you, as the application owner, still specify the continuity requirements.

A Heroku Postgres user laid out a production database decision in concrete terms:

With the industry seemingly pulling back from Heroku, I’m getting some pressure to move our production database off of Heroku Postgres. I don’t have a specific replacement in mind, so I’m hoping anyone here who has migrated from Heroku Postgres can share their experience. We’re currently running a premium-2 database, so I’m looking for something with a similar level of performance and high-availability support is required. I’ve considered just going with AWS RDS, but I don’t have any experience using it so I’d prefer something with a simpler interface if possible. I’d love to find an option with a relatively simple zero-downtime migration path, but scheduling a 2-4 hour maintenance window would be possible given that our application barely sees any use during the night.

r/Heroku

The author wanted comparable performance and high availability, had considered AWS RDS and could accept a two-to-four-hour nighttime maintenance window.

data recovery requirements

Write the continuity and exit specification

  • Interruption budget: how long the application can be down and under which conditions.
  • Data integrity: how you will export, import and handle in-flight changes.
  • Backup, restore and availability: the recovery method, how you will test a restore and any required high-availability features.
  • Dependencies: database extensions, authentication, integrations and application changes the move affects.
  • Accountability: who may start recovery and approve a return to the prior service.

Zero-downtime movement requires an application-specific path that you have tested.

Test the application before production cutover

application performance testing

An application that deploys fine can still behave differently on another managed platform. Response times, background processing, error rates and visibility into operations change the result even when both services support the same language.

A Rails developer moving from Heroku to Railway ran into queuing the team had not expected:

Roughly two weeks of doing every sniff and poke, and we can’t seem to understand why Railway’s network is imposing 150ms-200ms request queuing for every request. I’ve gotten no help from Railway support despite being on their Pro plan. In the past few days I’ve spun up the same stack in Render and DO, but haven’t tried out Fly yet. Render and DO give us the 40ms response times we’re used to seeing. Anyways, be warned. If you’re looking for a new forever home, avoid Railway. Or at least do some thorough stress testing before migrating. Regardless, it’s mind boggling that no one can simply just re-do what made Heroku special. The amount of time I wasted on this has been infuriating.

r/rails

The developer reported approximately 40 ms at the 95th percentile on the earlier Heroku deployment and 150 to 200 ms of request queuing on Railway. In an update to the same post, the author reported moving the stack successfully to Render with jemalloc and YJIT enabled.

deployment acceptance test

Set a pass or fail condition before migration

  1. Record the baseline: representative requests, response-time percentiles, error behavior and critical background jobs.
  2. Deploy the whole stack: application, database connections, workers and supporting dependencies.
  3. Run representative traffic: compare latency, queuing and errors under a load that resembles real use.
  4. Check operating signals: find out what your team can monitor and how support and incident escalation work.
  5. Define acceptance: decide what must be met before you switch production traffic.
  6. Plan rollback: write the steps for returning to the earlier deployment if those conditions fail.

Where containers and serverless services fit

serverless platform boundaries

NIST’s three models are the starting taxonomy. Commercial categories such as Containers as a Service (CaaS) and serverless functions describe more specific ways to run code. Cloud Run, for example, provides an ephemeral instance filesystem, so durable application files need persistent storage. Before you commit, check the exact service’s terms against your runtime, security, recovery and exit requirements.

Leave a Reply

Your email address will not be published. Required fields are marked *