iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

6.2 IaaS / PaaS / SaaS

IaaS gives you virtual hardware; PaaS gives you a runtime; SaaS gives you a finished product. The shift up the stack means more value, less control, and different cost models.

6.2 Cloud Service Models

The stack of responsibility

LayerIaaSPaaSSaaS
Hardwareproviderproviderprovider
Networkproviderproviderprovider
OSYOUproviderprovider
RuntimeYOUproviderprovider
ApplicationYOUYOUprovider
DataYOUYOUYOU (often)
ConfigurationYOUYOUYOU
IdentityYOUYOUYOU

Examples by model

ModelExamples
IaaSAWS EC2, Azure VMs, GCP Compute Engine, vSphere
PaaSAWS App Runner, Azure App Service, GCP Cloud Run, Heroku
SaaSMicrosoft 365, Google Workspace, Salesforce, Slack, Atlassian
CaaSManaged Kubernetes; ECS, AKS, GKE
FaaSLambda, Azure Functions, Cloud Run Functions

Cost characteristics

ModelPricingOps effortLock-in
IaaSOn-demand / reserved / spotHighLow (mostly)
PaaSPer-app, per-deployMediumMedium-high
SaaSPer-seat or per-tenantLowHigh

Worked example - internal portal for 50 staff

ModelMonthly cost (illustrative)Ops effortNotes
IaaSPHP 18,000HighFull VM + ops time
PaaSPHP 8,000MediumCloud Run / App Svc
SaaSPHP 6,000LowSharePoint / Notion

When to pick what

Choose IaaS whenlegacy software, full kernel control, hybrid sync
Choose PaaS whengreenfield apps, small ops team, fast iteration
Choose SaaS whencommodity function, integration beats customisation
Choose CaaS whenpolyglot containerised workloads, portability
Choose FaaS whenevent-driven, bursty, sub-second cold-start OK

Common pitfalls

  • IaaS migration that is just on-prem with bigger bills.
  • PaaS lock-in (proprietary triggers, runtime-specific extensions).
  • SaaS sprawl; 40 SaaS subscriptions, no SSO catalogue.
  • FaaS where steady traffic would be cheaper on PaaS.

Where this lives in EA

The service-model policy is Technology Architecture. Pair it with Application Architecture rules: 'new apps default to PaaS, customise only after measurement.'

Mentor’s tip: IaaS for control; PaaS for speed; SaaS for commodity work. Default new internal apps to PaaS. SaaS sprawl is the real cost trap - catalogue every subscription and govern under SSO.

Discussion

Loading…