Cloud computing is the delivery of computing services — servers, storage, databases, networking, software, analytics, and intelligence — over the internet ("the cloud") on a pay-as-you-go basis. Instead of owning physical hardware, you rent capacity from a provider and pay only for what you use.
Think of it like electricity: you don't own a power plant, you plug into the grid and pay for kilowatt-hours. Cloud computing gives you the same model for compute power.
Cloud computing in 30 seconds
| Term | What it means |
|---|---|
| Cloud | Someone else's servers accessed over the internet |
| On-premises | Servers you own and operate yourself |
| IaaS | Rent raw infrastructure (VMs, storage, networking) |
| PaaS | Rent a managed platform to deploy your app |
| SaaS | Use software hosted in the cloud (no installation) |
| Region | Geographic cluster of data centres |
| Availability Zone | Isolated data centre within a region |
| Pay-as-you-go | Pay only for what you actually consume |
Why cloud computing exists
Before the cloud, launching a web app meant:
- Buy servers — weeks to arrive, huge upfront cost
- Set up a data centre — power, cooling, physical security
- Hire operations staff — 24/7 monitoring, patching, hardware replacement
- Provision for peak load — buy for Black Friday, sit idle 11 months
Cloud providers (Amazon, Microsoft, Google) already built and maintain all that infrastructure. You use a fraction of their capacity on demand and pay per hour.
| Traditional IT | Cloud computing |
|---|---|
| Large upfront capital expense | Pay-as-you-go operating expense |
| Weeks to provision servers | Minutes to launch instances |
| Fixed capacity (over/under-provisioned) | Scale up or down instantly |
| You manage hardware | Provider manages hardware |
| Risk of wasted investment | No idle hardware cost |
| Single location | Global in minutes |
The three service models: IaaS, PaaS, SaaS
This is the most important framework in cloud computing.
IaaS — Infrastructure as a Service
You get raw computing resources: virtual machines, storage volumes, and networking. You manage the OS, middleware, runtime, and application. The provider manages physical hardware.
When to use IaaS: You need full control over the environment — OS patching, custom software, specific networking configurations.
Examples: Amazon EC2, Google Compute Engine, Azure Virtual Machines, DigitalOcean Droplets
# Launch an EC2 instance with AWS CLI
aws ec2 run-instances \
--image-id ami-0c55b159cbfafe1f0 \
--instance-type t2.micro \
--key-name my-key-pair
PaaS — Platform as a Service
You bring your application code; the provider manages everything underneath: OS, runtime, web server, scaling, load balancing, backups. You focus entirely on building features.
When to use PaaS: You want to deploy an app quickly without managing infrastructure.
Examples: Heroku, Google App Engine, AWS Elastic Beanstalk, Azure App Service, Fly.io, Railway
# Deploy a Node.js app to Heroku (PaaS)
git push heroku main
# Heroku handles: OS, Node.js runtime, scaling, SSL
SaaS — Software as a Service
A fully managed application delivered over the web — no installation, no maintenance. You just use the software.
When to use SaaS: You need a business tool, not a development platform.
Examples: Gmail, Slack, Salesforce, Zoom, Dropbox, GitHub, Notion, Figma
| Model | You manage | Provider manages | Example |
|---|---|---|---|
| On-premises | Everything | Nothing | Your own servers |
| IaaS | OS, middleware, app | Hardware, network | AWS EC2 |
| PaaS | App, data | Everything else | Heroku |
| SaaS | Just use it | Everything | Gmail |
A useful analogy: building a pizza.
- On-premises = make pizza at home from scratch (buy everything)
- IaaS = rent a commercial kitchen (equipment provided, you cook)
- PaaS = order pizza dough and toppings, bake it yourself
- SaaS = order from a restaurant (just eat it)
The three deployment models
Public cloud
Infrastructure is owned and operated by a third-party provider and shared across many customers ("multi-tenant"). Your data is logically isolated but the hardware is shared.
- Pros: Lowest cost, infinite scale, zero hardware management
- Cons: Less control, regulatory concerns in some industries
- Examples: AWS, Microsoft Azure, Google Cloud Platform
Private cloud
Infrastructure is dedicated to a single organisation — either on-premises or hosted by a provider. All hardware is exclusive to you.
- Pros: Full control, easier compliance for regulated industries (banking, healthcare)
- Cons: Higher cost, you manage (or pay someone to manage) the hardware
- Examples: VMware vSphere, OpenStack, on-premises data centres
Hybrid cloud
A mix of public and private cloud, connected by networking. Sensitive data stays on-premises; burst workloads run in public cloud.
- Pros: Flexibility, keep sensitive data private, scale elastically
- Cons: More complex to architect and operate
- Examples: A bank's core systems on-premises + analytics in AWS
| Deployment | Best for | Cost | Control |
|---|---|---|---|
| Public | Startups, most businesses | Lowest | Less |
| Private | Regulated industries, security-sensitive | Highest | Full |
| Hybrid | Large enterprises with mixed needs | Medium | High |
| Multi-cloud | Avoiding vendor lock-in | Varies | High |
The major cloud providers
Three hyperscalers dominate the market:
| Provider | Market share | Strengths | Best known for |
|---|---|---|---|
| AWS (Amazon) | ~31% | Largest service catalogue, most mature | EC2, S3, Lambda, RDS |
| Microsoft Azure | ~25% | Enterprise integration, Microsoft ecosystem | Active Directory, Office 365 integration |
| Google Cloud (GCP) | ~12% | Data/ML leadership, Kubernetes (invented it) | BigQuery, TensorFlow, GKE |
| Alibaba Cloud | ~4% | Asia-Pacific dominance | Growing globally |
| Oracle Cloud | ~2% | Database workloads | Autonomous Database |
For a deeper comparison, see AWS vs Azure vs GCP.
Core cloud concepts you need to know
Regions and Availability Zones
A region is a geographic area (e.g., us-east-1 in Northern Virginia). Each region contains multiple Availability Zones (AZs) — physically separate data centres with independent power, cooling, and networking.
Deploy across multiple AZs to survive a data centre failure. Deploy across multiple regions for disaster recovery or low latency.
us-east-1 (N. Virginia)
├── us-east-1a (Data centre A)
├── us-east-1b (Data centre B)
└── us-east-1c (Data centre C)
Compute
| Service type | Description | AWS example | GCP example | Azure example |
|---|---|---|---|---|
| Virtual machines | Full OS instances | EC2 | Compute Engine | Virtual Machines |
| Containers | Docker-based | ECS / EKS | GKE | AKS |
| Serverless functions | Run code without servers | Lambda | Cloud Functions | Azure Functions |
| Bare metal | Physical servers | EC2 Bare Metal | Bare Metal | Azure Dedicated Host |
Storage
| Storage type | Description | Use case |
|---|---|---|
| Object storage | Files, blobs, images | S3, GCS, Azure Blob |
| Block storage | Virtual hard disks | EBS, Persistent Disk |
| File storage | Shared network drives | EFS, Filestore |
| Archive | Long-term cold storage | S3 Glacier, Coldline |
Databases
Cloud providers offer managed databases — no installation, automatic backups, one-click scaling:
| Type | AWS | GCP | Azure |
|---|---|---|---|
| Relational | RDS, Aurora | Cloud SQL | Azure SQL |
| NoSQL | DynamoDB | Firestore | CosmosDB |
| Cache | ElastiCache | Memorystore | Azure Cache for Redis |
| Data warehouse | Redshift | BigQuery | Synapse Analytics |
Networking
| Concept | Description |
|---|---|
| VPC | Virtual Private Cloud — your isolated network |
| Subnet | A range of IP addresses within a VPC |
| Load balancer | Distributes traffic across multiple instances |
| CDN | Serves static assets from edge locations near users |
| VPN / Direct Connect | Private, encrypted connection to the cloud |
Key cloud computing benefits
1. Cost efficiency
Pay only for what you use. No upfront hardware investment. AWS pricing example:
- t3.micro (1 vCPU, 1 GB RAM): ~$0.0104/hour = ~$7.50/month
- t3.xlarge (4 vCPU, 16 GB RAM): ~$0.1664/hour = ~$121/month
- Spot instances: Up to 90% discount for interruptible workloads
2. Elasticity
Scale out during peak demand, scale back down when demand drops. An e-commerce site can run 10 servers normally and 500 on Black Friday — automatically.
# AWS Auto Scaling policy (conceptual)
scale_out_policy = {
"adjustment_type": "ChangeInCapacity",
"scaling_adjustment": 5, # Add 5 instances
"cooldown": 300, # Wait 5 min before next scale
"trigger": "cpu_utilization > 70" # When CPU exceeds 70%
}
3. Global reach
AWS operates 33 regions worldwide. You can deploy your app closer to users in Tokyo, São Paulo, or Sydney in minutes — no physical presence required.
4. Reliability
Major cloud providers offer 99.99% uptime SLAs. Data is automatically replicated across Availability Zones. Providers have redundant power, networking, and cooling.
5. Security
Cloud providers invest billions in security:
- Physical security (biometrics, 24/7 guards)
- Network DDoS protection
- Encryption at rest and in transit
- Compliance certifications: SOC 2, ISO 27001, PCI DSS, HIPAA
You're still responsible for how you configure your resources (IAM permissions, open ports, encryption settings) — this is the Shared Responsibility Model.
Shared Responsibility Model
| Responsibility | Provider | Customer |
|---|---|---|
| Physical hardware | ✅ | |
| Network infrastructure | ✅ | |
| Hypervisor / OS (for PaaS/SaaS) | ✅ | |
| OS (for IaaS VMs) | ✅ | |
| Application code | ✅ | |
| Identity & access management | ✅ | |
| Data encryption | Provides tools | ✅ Uses them |
| Network configuration | ✅ |
Real-world cloud computing examples
| Industry | Use case | Cloud services used |
|---|---|---|
| E-commerce | Scale for peak sales, product images | EC2 auto scaling, S3, CloudFront CDN |
| Streaming | Video encoding and delivery | S3, Lambda, CloudFront |
| Healthcare | Secure patient records | HIPAA-compliant cloud regions |
| Finance | Fraud detection with ML | SageMaker, BigQuery ML |
| Gaming | Real-time multiplayer infrastructure | Game servers with low latency |
| Startups | Launch fast without upfront cost | Heroku, Vercel, Firebase |
| Research | Train ML models on GPUs | A100 GPU instances |
| Government | Secure infrastructure | GovCloud dedicated regions |
Getting started with cloud computing
Step 1: Pick a provider
For learning, all three give you free tiers:
| Provider | Free tier highlights |
|---|---|
| AWS | 750 hrs/mo EC2 t2.micro for 12 months, 5 GB S3 forever |
| GCP | $300 credit for 90 days, free tier compute/storage forever |
| Azure | $200 credit for 30 days, 12 months of free services |
Most beginners start with AWS (largest market share, most tutorials) or GCP (best for ML/data).
Step 2: Learn the fundamentals
Recommended path:
- Networking basics — understand VPCs, subnets, IP addresses, DNS
- Linux basics — cloud servers run Linux 90% of the time
- AWS/GCP/Azure console — launch your first VM, upload a file to object storage
- CLI tools —
aws cli,gcloud, orazfor scripting - Infrastructure as Code — Terraform or CloudFormation to define resources in code
Step 3: Get certified
Cloud certifications are widely valued by employers:
| Certification | Provider | Level | Focus |
|---|---|---|---|
| AWS Cloud Practitioner | AWS | Beginner | Cloud concepts, billing, services overview |
| AWS Solutions Architect Associate | AWS | Intermediate | Architecture best practices |
| Google Associate Cloud Engineer | GCP | Intermediate | Deploying and managing GCP apps |
| Azure Fundamentals (AZ-900) | Azure | Beginner | Azure concepts and services |
| Azure Administrator (AZ-104) | Azure | Intermediate | Azure infrastructure management |
For a full learning path, see the Cloud Engineer Roadmap.
Cloud computing vs on-premises: when to choose what
| Scenario | Cloud | On-premises |
|---|---|---|
| Starting a new company | ✅ | |
| Variable/unpredictable traffic | ✅ | |
| Global user base | ✅ | |
| Regulatory data residency requirements | Depends | ✅ |
| Latency-critical systems (<1ms) | ✅ | |
| Air-gapped security requirements | ✅ | |
| Predictable, stable workloads (10+ years) | Depends | ✅ Sometimes cheaper |
| Machine learning research | ✅ GPU instances |
Common cloud computing mistakes
| Mistake | Why it's a problem | Fix |
|---|---|---|
| Leaving resources running | VMs and databases idle 24/7 cost money | Use auto-shutdown schedules, auto scaling |
| Over-provisioning | Paying for large instances you don't need | Start small, monitor, right-size |
| No multi-AZ setup | Single AZ = single point of failure | Deploy across at least 2 AZs |
| No cost alerts | Bill shock at end of month | Set billing alerts at 50%/80%/100% budget |
| IAM over-permissioning | Breach exposes too much | Follow principle of least privilege |
| No backup strategy | Data loss risk | Enable automatic snapshots, test restores |
| Storing secrets in code | Credentials exposed in version control | Use secrets manager (AWS Secrets Manager, Vault) |
| Ignoring the egress bill | Downloading data from cloud is expensive | Cache with CDN, keep data processing in-cloud |
Cloud computing vs related terms
| Term | Relationship to cloud |
|---|---|
| Serverless | A cloud pattern — run code without managing servers (Lambda, Cloud Functions) |
| DevOps | A practice that uses cloud tools for CI/CD, infrastructure automation |
| Containers / Docker | A packaging method deployed on cloud infrastructure |
| Kubernetes | Container orchestration, usually run on cloud VMs or managed (EKS, GKE) |
| Edge computing | Processing data closer to the source (IoT); complement to cloud |
| Fog computing | Distributed edge computing between device and cloud |
| Multi-cloud | Using services from multiple cloud providers simultaneously |
| Hybrid cloud | Mix of private on-premises and public cloud |
Frequently asked questions
Is cloud computing safe? Yes — for most use cases. Major providers have certifications for healthcare (HIPAA), finance (PCI DSS), and government (FedRAMP). Your security posture depends on how you configure access, encryption, and monitoring. Misconfigured S3 buckets and overly permissive IAM roles cause most cloud breaches — not provider-side failures.
Is cloud computing expensive? It depends on your usage. For startups and small apps, cloud is often far cheaper than buying servers. At very large scale (Netflix, Airbnb-size), some companies build their own data centres for specific workloads. Most businesses save money with cloud versus maintaining on-premises infrastructure.
What's the difference between cloud hosting and traditional web hosting? Traditional web hosting (shared hosting, VPS) puts your site on pre-configured servers with fixed plans. Cloud hosting (AWS, GCP, Azure) gives you infrastructure primitives you assemble yourself, with per-second billing, unlimited scale, and global distribution.
Do I need to know programming to use cloud computing? For SaaS (Gmail, Slack) — no. For IaaS/PaaS — basic Linux and scripting knowledge helps enormously. For a career in cloud engineering, you'll need Linux, networking, scripting (Python/Bash), and Infrastructure as Code (Terraform).
Which cloud provider should I learn first? AWS has the largest market share (~31%) and the most job listings, so it's the most practical for career purposes. GCP is excellent for ML/data engineering. Azure is common in enterprises with Microsoft ecosystems. Start with AWS if unsure.
What is serverless cloud computing? Serverless means you write functions that run in response to events — you don't provision or manage any servers. AWS Lambda, Google Cloud Functions, and Azure Functions are examples. You pay per invocation (often fractions of a cent) rather than per hour of server time.
Quick reference
Cloud service models:
├── IaaS (Infrastructure as a Service)
│ └── You manage: OS, middleware, app, data
│ └── Provider manages: physical hardware
│ └── Examples: AWS EC2, Azure VMs, GCP Compute Engine
│
├── PaaS (Platform as a Service)
│ └── You manage: app code and data
│ └── Provider manages: OS, runtime, scaling
│ └── Examples: Heroku, App Engine, Azure App Service
│
└── SaaS (Software as a Service)
└── You manage: just use it
└── Provider manages: everything
└── Examples: Gmail, Slack, Salesforce, GitHub
Deployment models:
├── Public cloud — shared, cheapest, most scalable
├── Private cloud — dedicated, most control, most expensive
└── Hybrid cloud — mix of both
Cloud computing underpins virtually every modern web application, mobile app, and data pipeline. Whether you're a developer, data scientist, or business analyst, understanding the cloud is essential for the modern tech landscape.