Skip to content
VirtualLP Virtual Learning Platform

Deploying Software Solutions, Web Applications and Types of Cloud Platforms

15 min read Topic 11 of 34 1 hands-on lab

A cloud provider can do different amounts of work for you. You can rent a virtual computer, use a ready platform for your code, or use a finished application.

These choices are called IaaS (Infrastructure as a Service), PaaS (Platform as a Service) and SaaS (Software as a Service). They change what you manage and what the provider manages. Deployment means making software ready to run for its users.

place to live
  • IaaS = renting an empty flat: walls, water and electricity are given; you bring furniture, cook and clean.
  • PaaS = renting a furnished flat: furniture and kitchen are ready; you just live and cook your own food.
  • SaaS = staying in a hotel: everything is done for you; you just use the room.

The three service models

flowchart LR
    subgraph OnPrem[On-premises]
        direction TB
        a1[Applications]:::you --> a2[Data]:::you --> a3[Runtime]:::you --> a4[Middleware]:::you --> a5[OS]:::you --> a6[Virtualization]:::you --> a7[Servers]:::you --> a8[Storage]:::you --> a9[Networking]:::you
    end
    subgraph I[IaaS]
        direction TB
        b1[Applications]:::you --> b2[Data]:::you --> b3[Runtime]:::you --> b4[Middleware]:::you --> b5[OS]:::you --> b6[Virtualization]:::cp --> b7[Servers]:::cp --> b8[Storage]:::cp --> b9[Networking]:::cp
    end
    subgraph P[PaaS]
        direction TB
        c1[Applications]:::you --> c2[Data]:::you --> c3[Runtime]:::cp --> c4[Middleware]:::cp --> c5[OS]:::cp --> c6[Virtualization]:::cp --> c7[Servers]:::cp --> c8[Storage]:::cp --> c9[Networking]:::cp
    end
    subgraph S[SaaS]
        direction TB
        d1[Applications]:::cp --> d2[Data]:::cp --> d3[Runtime]:::cp --> d4[Middleware]:::cp --> d5[OS]:::cp --> d6[Virtualization]:::cp --> d7[Servers]:::cp --> d8[Storage]:::cp --> d9[Networking]:::cp
    end
    classDef you fill:#fff4d6,stroke:#f0a400
    classDef cp fill:#eef3ff,stroke:#2747d4

Yellow = you manage, blue = the provider manages. Read it from left to right: the further right you go, the more the provider does for you.

Some words in the diagram:

  • Runtime – what your code needs to run (for example Java, PHP, Python).
  • Middleware – software that connects parts of an application (web servers, message queues).
  • OS – the operating system (Linux, Windows).

Infrastructure as a Service (IaaS)

IaaS

Infrastructure as a Service (IaaS) provides resources such as virtual machines, storage and networks. You manage the operating system and applications. The provider manages the underlying cloud hardware.

  • Examples: Amazon EC2 (Elastic Compute Cloud), EBS (Elastic Block Store), VPC (Virtual Private Cloud); Azure Virtual Machines; Google Compute Engine; OpenStack Nova; DigitalOcean Droplets.
  • Who uses it: system administrators and DevOps engineers.
  • Pros: maximum control and freedom; you can move existing apps as they are (lift and shift); pay-per-use hardware.
  • Cons: you must update (patch) the OS, set firewalls (security groups), scaling and backups yourself.

Platform as a Service (PaaS)

PaaS

Platform as a Service (PaaS) gives you a ready platform for running your code. You manage your application and its settings. The provider manages the servers, operating system and supported runtime.

  • Examples: Google App Engine, Azure App Service, AWS (Amazon Web Services) Elastic Beanstalk, Heroku, Red Hat OpenShift, Salesforce Platform.
  • Who uses it: developers.
  • Pros: no servers to manage, automatic scaling, faster development, built-in databases and deployment pipelines (CI/CD (Continuous Integration and Continuous Delivery)).
  • Cons: less control, only supported languages/runtimes, harder to move to another provider (lock-in).

Software as a Service (SaaS)

SaaS

Software as a Service (SaaS) lets you use a finished application over a network, often in a browser. You manage your account and allowed settings. The provider runs the application.

  • Examples: Gmail, Microsoft 365, Google Workspace, Salesforce CRM, Zoom, Dropbox, Zoho Books, ServiceNow.
  • Who uses it: end users and businesses.
  • Pros: nothing to install or maintain, monthly subscription, use it from anywhere.
  • Cons: limited customisation, your data is kept by the provider, you depend on the vendor.

Comparison

Basis IaaS PaaS SaaS
You get Virtual hardware A platform to build and run apps Finished software
You manage OS, runtime, data, apps Data and apps Only settings and your data
Control High Medium Low
Technical skill needed High Medium Low
Typical user Sysadmin / DevOps Developer End user
Examples EC2, Compute Engine, OpenStack App Engine, Beanstalk, Heroku Gmail, Salesforce, Microsoft 365
Analogy Renting an empty flat Renting a furnished flat Staying in a hotel

Newer "as-a-Service" models

Model Idea Examples
FaaS / Serverless Upload small functions; they run only when an event happens, and you pay per run and per millisecond AWS Lambda, Azure Functions, Google Cloud Functions
CaaS Managed containers and the software that runs them (orchestration) Amazon ECS (Elastic Container Service)/EKS (Elastic Kubernetes Service), Google Kubernetes Engine, Azure AKS
DBaaS Managed databases – no database server to look after Amazon RDS (Relational Database Service), Azure SQL (Structured Query Language) Database, Cloud SQL
STaaS Storage as a service Amazon S3 (Simple Storage Service), Azure Blob, Google Cloud Storage
DaaS Desktop as a service – a full Windows/Linux desktop in the cloud Amazon WorkSpaces, Windows 365

The shared responsibility model

Security in the cloud is shared:

  • the provider protects the cloud itself – data-centre buildings, hardware, hypervisor, global network ("security of the cloud"),
  • the customer protects what they put in it – data, accounts, settings ("security in the cloud").

The customer's share gets smaller from IaaS to SaaS:

Responsibility IaaS PaaS SaaS
Data & who can access it Customer Customer Customer
Application Customer Customer Provider
OS updates (patching) Customer Provider Provider
Network controls (firewalls) Customer (security groups) Shared Provider
Physical security, hypervisor Provider Provider Provider
A classic mistake

Most cloud data leaks are caused by customer mistakes – a storage bucket left public, a firewall left open, an access key posted online – not by the provider. Protecting your data is always the customer's job.

Deploying software solutions and web applications

Deployment on IaaS – the "lift and shift" path

  1. Create a network (VPC, subnets, security groups).
  2. Start virtual machines from an image (AMI (Amazon Machine Image) / qcow2).
  3. Install the runtime (Apache/Nginx, PHP/Java/Node, database) – by hand, automatically at first boot with user data / cloud-init, or with settings tools like Ansible.
  4. Copy the application code, set up it and start the services.
  5. Add a load balancer (shares traffic between servers) and an auto-scaling group (adds/removes servers) for reliability and elasticity.
  6. Point a DNS (Domain Name System) name (like www.myshop.com) to the load balancer.

Deployment on PaaS – just push your code

# Google App Engine
gcloud app deploy app.yaml

# AWS Elastic Beanstalk
eb init my-app --platform php --region ap-south-1
eb create my-app-prod
eb deploy

# Heroku
git push heroku main

The platform automatically builds the code, creates servers, and sets up load balancing, scaling and monitoring.

Deployment on SaaS – configure, don't build

Sign up, add users, change settings, and connect it to other systems through APIs (Application Programming Interfaces) (for example connecting Salesforce to an ERP system). No code to deploy.

A typical three-tier web application on the cloud

flowchart LR
    U[Users] --> DNS[DNS – Route 53]
    DNS --> CDN[CDN – CloudFront]
    CDN --> LB[Load balancer]
    LB --> W1[Web/App server VM] & W2[Web/App server VM]
    W1 & W2 --> DB[(Managed database – RDS<br/>primary + standby)]
    W1 & W2 --> OBJ[(Object storage – S3<br/>images, uploads)]

A user enters the web address. DNS finds the address. A CDN (Content Delivery Network) delivers nearby copies of files. A load balancer shares requests between web servers. The servers use a database for records and object storage for files such as photos.

Deployment strategies (how to release a new version)

Strategy Description Everyday picture
Recreate Stop the old version, start the new one – there is downtime. Closing a shop for a day to renovate
Rolling Replace servers a few at a time. Replacing bulbs one by one so the room never goes dark
Blue–green Run the new version (green) next to the old (blue) and switch all traffic at once; going back is easy. Opening a new counter and moving the queue to it in one go
Canary Send a small percentage of users to the new version first, then more. Letting a few customers taste a new dish before adding it to the menu
Immutable Never change running servers – build new images and replace the servers. Buying a new phone instead of repairing the old one

Virtual lab · Amazon Web Services · 25 min

Deploy a web server on Amazon EC2

Launch a Linux virtual server in the AWS console, open HTTP in its firewall, bootstrap Apache with user data and connect over EC2 Instance Connect – the classic IaaS deployment.

Open lab

Types of cloud platforms (by provider)

Category Platforms
Very large public clouds (hyperscalers) AWS, Microsoft Azure, Google Cloud
Enterprise / specialised Oracle Cloud, IBM Cloud, Alibaba Cloud, Salesforce
Developer clouds DigitalOcean, Linode (Akamai), Heroku, Vercel
Open-source software to build a private cloud OpenStack, Apache CloudStack, OpenNebula, Eucalyptus
Indian / sovereign MeghRaj (NIC (Network Interface Card)), Yotta, CtrlS, Jio Cloud

Summary

  • IaaS gives virtual infrastructure; PaaS gives a ready platform to run code; SaaS gives finished applications.
  • Control and responsibility move from the customer to the provider as you go IaaS → PaaS → SaaS.
  • Shared responsibility: the provider secures the cloud; the customer secures what they put in it.
  • Web apps are deployed on IaaS by building servers, on PaaS by pushing code, and on SaaS by configuring.
  • Release strategies: rolling, blue–green, canary and immutable deployments.

Practice questions

  1. Explain IaaS, PaaS and SaaS with examples and a neat diagram.
  2. Compare IaaS, PaaS and SaaS (any eight points).
  3. Explain the shared responsibility model.
  4. Describe the steps to deploy a web application on an IaaS cloud.
  5. What is serverless computing (FaaS)? How does it differ from PaaS?
  6. Explain blue–green and canary deployments.

Practise this topic

Hands-on virtual lab

Apply what you just read in a realistic, guided simulation. Free with a verified account.

Create a free account to track your progress and unlock virtual labs.