What Is Cloud Computing?
A friendly, step-by-step guide to renting computers over the internet: what the cloud really is, how it works inside, why almost every company uses it, and how to use it safely.
Think about the last time you watched a video, opened a photo backup, or sent an email from your phone. None of that lived on your device. It lived somewhere far away, inside a huge building full of computers, and it reached you in a split second. That building, and the way we rent computing power from it, is what people mean when they say cloud computing.
This guide walks through the idea from the ground up. You do not need to know anything about servers or networks first. Every new word is explained the moment it appears, with an everyday comparison and a real example. By the end you will be able to explain the cloud to a friend, follow job interviews and certification questions about it, and make sensible choices for real projects.
1The Big Idea: What Cloud Computing Means
Cloud computing is a simple trade: instead of owning computers, you rent them over the internet and pay only for what you use.
The one-sentence definition
Cloud computing means using computing resources that belong to someone else, reached over the internet, and paying only for the amount you actually use. Those resources include processing power, storage space, databases, networking, and ready-made software.
A server is a powerful computer whose job is to serve other computers. It stores files, runs applications, and answers requests from phones and web browsers. Before the cloud, any company that wanted a website had to buy servers, place them in a room, keep that room cool and powered, and hire people to look after everything. If the website became popular overnight, the company had to buy more machines and wait weeks for them to arrive. If the website became unpopular, the machines sat idle but still cost money.
Cloud computing removes that burden. You ask a cloud provider, which is a company that runs enormous collections of computers, for what you need. A few minutes later it is ready. When you no longer need it, you hand it back and the billing stops.
Think about electricity. A hundred years ago, a factory often built its own power generator. Today almost nobody does. You plug into the grid, use what you need, and pay a bill based on the meter. Cloud computing is the same idea for computing power. The provider runs the “power plant”, and you simply plug in.
Where the word “cloud” comes from
For decades, engineers who drew network diagrams used a cloud-shaped doodle to represent “the internet, or some other network we do not need to describe in detail.” Over time the doodle became the name. There is nothing floating in the sky. The cloud is made of very real buildings, cables, and machines.
What can you rent?
Almost every part of a computer system can be rented as a service. The main categories are:
- Compute: processing power to run programs, from a single small machine to thousands at once.
- Storage: places to keep files, photos, videos, and backups safely.
- Databases: organised storage for data that applications need to search and update quickly.
- Networking: private virtual networks, traffic directors, and connections to the internet.
- Software: finished applications such as email, document editors, and customer-management tools.
- Specialised tools: analytics, machine learning, messaging, and monitoring.
The cloud is not magic and not weather. It is real computers in real buildings called data centers. The only difference is that you do not own, house, or repair them. Someone else does, and you share the benefits.
2A Short History: How We Got Here
The cloud did not appear overnight. It grew from sharing, then from smarter ways to slice up machines, then from companies that learned to rent out their own spare capacity.
Understanding the history helps you see why the cloud looks the way it does. Each step solved a real problem that people were struggling with at the time.
Time-sharing on mainframes
Computers were giant and costly, so many people took turns using one machine through terminals. The seed of “sharing one big computer” was planted.
The web and virtualization
The public web created demand for servers everywhere. At the same time, virtualization technology matured, letting one physical machine behave like several separate ones.
Software as a service arrives
Salesforce launched in 1999 with the bold idea that business software could be used through a web browser, with nothing to install.
Amazon launches its cloud services
In 2006 Amazon Web Services began offering storage (S3) and rentable virtual servers (EC2). Amazon had built huge systems for its own shop and realised others would pay to use the same building blocks.
Google and Microsoft join in
Google introduced App Engine in 2008, and Microsoft announced what became Azure around the same time. Competition made services cheaper and richer.
An official definition
The US National Institute of Standards and Technology (NIST) published the definition most of the industry now uses, with five traits, three service models, and four deployment models.
Containers and orchestration
Docker (2013) made it easy to package an application with everything it needs. Kubernetes (open-sourced in 2014) made it possible to run thousands of such packages automatically.
Serverless computing
AWS Lambda appeared in 2014, letting developers run small pieces of code without thinking about servers at all.
The pattern repeats: each new idea hides more of the hard work. First you stopped buying buildings, then machines, then operating systems, and finally even servers. The direction of travel is always “less to manage, more time to build.”
3Core Concepts: The Five Essential Traits
NIST says a service counts as cloud computing only if it has five traits. They are also a handy checklist for spotting “cloud in name only.”
On-demand self-service
You create what you need yourself, through a website or a program, with no phone calls or paperwork. A new server can be ready in minutes.
Broad network access
Everything is reachable over the network from laptops, phones, and other computers. If you have internet, you can reach your resources.
Resource pooling
The provider’s machines form one big shared pool. Many customers use it at once, and the provider assigns pieces of it as needed. This sharing is called multi-tenancy.
Rapid elasticity
Resources can grow when demand rises and shrink when it falls, often automatically. To you it feels as if the supply never runs out.
Measured service
Usage is metered, like a taxi meter. The provider tracks what you use, which makes pay-as-you-go billing possible.
Global reach
Providers place data centers around the world, so you can run your service close to your users with a few clicks.
A hotel is a good picture of elasticity and pooling. The hotel has many rooms that guests share over time. You book a room when you need one, you pay per night, and you leave when you are done. A busy holiday weekend does not force the hotel to build new rooms, because the pool is large enough. Cloud providers work the same way with servers instead of rooms.
Three words you will hear constantly
A virtual machine (VM) is a pretend computer that runs inside a real one. It has its own memory, disk, and operating system, yet it shares the physical hardware with other VMs. A region is a geographic area, such as “Mumbai” or “Frankfurt”, where a provider has data centers. An availability zone (AZ) is one separate data center, or a group of them, inside a region, with its own power and cooling. Spreading your work across several zones keeps it running even if one building has trouble.
Putting a website on a single rented server is hosting, not necessarily “using the cloud”. The real power comes from elasticity, metering, and self-service together. A fixed machine rented by the year lacks most of that.
4Service Models: IaaS, PaaS, SaaS, and Serverless
Cloud services come in layers. The higher the layer, the more the provider does for you, and the less control you keep.
The word “service” in these names simply means “rented instead of owned.” The first letters tell you what is being rented: Infrastructure, Platform, or Software.
flowchart TB
A["SaaS: finished apps such as email and CRM"]
B["PaaS: a ready place to run your code"]
C["IaaS: virtual servers, storage and networks"]
D["Physical data center: buildings, power, hardware"]
A --> B
B --> C
C --> D
Infrastructure as a Service (IaaS)
With IaaS you rent the raw building blocks: virtual servers, storage disks, and networks. You choose the operating system, install your own software, and handle updates. It offers the most freedom and needs the most skill. Amazon EC2, Azure Virtual Machines, and Google Compute Engine are well-known examples.
Platform as a Service (PaaS)
With PaaS the provider also manages the operating system and runtime. You bring only your application code. The platform runs it, scales it, and keeps it patched. Heroku, Google App Engine, Azure App Service, and AWS Elastic Beanstalk are examples. It is ideal when developers want to ship features rather than maintain machines.
Software as a Service (SaaS)
With SaaS you simply use a finished application through a browser or an app. Gmail, Microsoft 365, Slack, and Salesforce are SaaS. You never think about servers at all, only about your work.
Serverless, also called Function as a Service (FaaS)
Serverless is a newer style where you upload a small function and the provider runs it only when something triggers it, such as a file upload or a web request. You pay only for the moments the function actually runs. Servers still exist, but you never see or manage them. AWS Lambda is the best-known example.
Imagine wanting pizza for dinner. With IaaS you buy a kitchen’s worth of equipment and make everything yourself. With PaaS you rent a fully equipped kitchen and bring your own ingredients. With SaaS you simply order a finished pizza. Serverless is like paying only for each slice, at the moment you eat it.
| Model | You manage | Provider manages | Example |
|---|---|---|---|
| IaaS | Operating system, runtime, app, data | Hardware, virtualization, network | Amazon EC2 |
| PaaS | App and data | Everything below the app | Google App Engine |
| SaaS | Your own settings and content | Everything else | Gmail |
| Serverless | Small functions | Servers, scaling, runtime | AWS Lambda |
5Deployment Models: Where the Cloud Lives
Service models say what you rent. Deployment models say who shares the cloud with you and who owns it.
Public cloud
Owned by a provider and open to anyone who signs up. Many customers share the same underlying hardware, kept strictly separate by software. AWS, Microsoft Azure, and Google Cloud are public clouds.
Private cloud
Built for one organisation only, either in its own data center or hosted for it. It offers more control and is often chosen for strict rules about where data may live.
Hybrid cloud
A blend of private and public, connected so that workloads and data can move between them. Sensitive records stay private while busy, flexible work uses the public side.
Multi-cloud
Using more than one public provider at the same time, perhaps to avoid depending on a single company or to use each provider’s best tool.
Public cloud is like taking the city bus: cheap, always running, and shared with strangers. Private cloud is like owning a car: more control and privacy, but you pay for the car whether you drive or not. Hybrid is owning a car for daily needs and using the bus or a taxi when you have extra passengers.
Real-world example: a bank’s hybrid setup
A typical bank keeps its core account ledger in a tightly controlled private environment because regulators require it. Yet its mobile app, marketing website, and fraud-analysis experiments run on public cloud, where capacity can expand during salary day or festival shopping rushes.
A community cloud, the fourth NIST model, is shared by several organisations with the same concerns, such as a group of universities or government agencies. It is rarer, so most beginners can focus on public, private, and hybrid first.
6Architecture and Components
A cloud is a stack of cooperating parts, from concrete floors at the bottom to a friendly web console at the top.
Let us walk through the parts from the outside in. The picture below shows how a user’s request meets a typical cloud application.
flowchart LR
U["User on phone or laptop"] --> DNS["DNS name lookup"]
DNS --> CDN["CDN edge cache"]
CDN --> GW["API Gateway"]
GW --> LB["Load Balancer"]
LB --> S1["App Server 1"]
LB --> S2["App Server 2"]
S1 --> CA["Cache"]
S2 --> CA
S1 --> DB["Managed Database"]
S2 --> DB
S1 --> OS["Object Storage"]
S2 --> OS
The physical layer
At the bottom are data centers: large buildings with racks of servers, strong power supplies, backup generators, cooling systems, and tight physical security. Providers group these into regions and availability zones so that a problem in one place does not take down everything.
The building blocks you rent
Compute
Virtual machines, containers, and serverless functions. This is the “brain power” that runs your code.
Storage
Object storage for files and media, block storage for server disks, and file storage for shared folders.
Databases
Managed services that store and search structured data, with backups and repairs handled for you.
Networking
Private virtual networks, firewalls, load balancers, and links to your own offices.
Identity and access
The system that decides who may do what, using users, roles, and permissions.
Management tools
The web console, command-line tools, and APIs used to create resources, plus monitoring and billing tools.
The control plane and the data plane
Engineers split a cloud into two parts. The control plane is the management side: it receives your requests to create, change, or delete things. The data plane is the working side: it carries the traffic and runs the programs. Keeping them apart means that a flood of customer traffic does not stop you from managing your resources, and the other way round.
Think of an airport. The control tower decides which plane lands where and when, but the planes themselves carry the passengers. The tower is the control plane, the planes and runways are the data plane. Passengers keep flying even if the tower is busy with a paperwork question.
7How It Works Inside: Virtualization and Containers
The secret behind the cloud is slicing big machines into many small, separate ones, then handing out the slices automatically.
Virtualization: one machine, many computers
A modern server is very powerful, far more than most single programs need. Virtualization is the technique of dividing one physical server into several virtual machines. A special program called a hypervisor sits between the hardware and the virtual machines. It gives each VM a share of processor time, memory, and disk, and it keeps the VMs from seeing each other’s data.
Because of the hypervisor, a customer who rents a “small server” does not get a whole physical box. They get a protected slice of one, and other customers get other slices of the same box. This is the heart of multi-tenancy, and it is why cloud computing can be so cheap. Modern providers also move much of this isolation work onto specialised hardware cards, which makes the slices both safer and faster.
A hypervisor works like the manager of an apartment building. One big building (the physical server) is divided into separate apartments (virtual machines). Each tenant has their own front door and lock, cannot walk into a neighbour’s flat, and pays only for their own space.
Containers: lighter and faster
A virtual machine carries a full operating system, which makes it heavy. A container is a lighter package that holds an application and the files it needs, while sharing the operating system of the machine underneath. Containers start in seconds, use less memory, and behave the same on a laptop as in the cloud. That is why developers love them.
When a company runs thousands of containers, a human cannot place each one by hand. An orchestrator, with Kubernetes being the most popular, decides which machine runs which container, restarts any that crash, and adds more when traffic grows.
| Feature | Virtual machine | Container |
|---|---|---|
| Includes its own operating system | Yes | No, shares the host’s |
| Start time | Minutes | Seconds |
| Size | Large | Small |
| Isolation strength | Very strong | Good, relies on the shared system |
| Best for | Different operating systems, strict separation | Fast-moving applications, microservices |
Three kinds of cloud storage
Storage is not one thing. Object storage keeps files as “objects” in huge flat buckets, which is perfect for photos, videos, and backups. Block storage behaves like a hard disk attached to a server and suits databases. File storage offers shared folders that several servers can open at once. Choosing the right kind is one of the first design decisions in any cloud project.
What happens when you click “Launch”
Your request arrives
The console or a program sends your request to the provider’s control plane, together with proof of who you are.
Permissions are checked
The identity system confirms you are allowed to create this kind of resource and that your account has no limit in the way.
A scheduler picks a machine
A placement program looks for a physical server with enough free capacity in the zone you chose.
The slice is built
The hypervisor carves out processor, memory, and disk, attaches a virtual network card, and starts your chosen operating system image.
Metering begins
The machine reports that it is running, your address is returned to you, and the billing meter starts counting.
8Data Flow and Lifecycle
Follow one click from a phone to a database and back, then follow the life of a cloud resource from birth to retirement.
The journey of a single request
Suppose you open a shopping app and tap “My orders”. Here is the path that tap takes through a well-built cloud application.
sequenceDiagram
participant U as User App
participant C as CDN Edge
participant G as API Gateway
participant L as Load Balancer
participant A as App Server
participant K as Cache
participant D as Database
U->>C: Request page and images
C-->>U: Cached images returned
U->>G: Ask for my orders
G->>L: Forward after login check
L->>A: Choose a healthy server
A->>K: Look for saved answer
K-->>A: Not found
A->>D: Read orders
D-->>A: Order rows
A->>K: Save answer for next time
A-->>U: Orders shown
Step by step: the CDN (content delivery network) serves pictures and static files from a location near you, which makes pages load fast. The API gateway is the front desk of your application. It checks who you are, applies limits, and sends the request to the right place. The load balancer spreads requests evenly across several servers and skips any that are unhealthy. The application server asks the cache, a very fast memory store, whether the answer is already known. Only if it is not does the server read from the slower, durable database. Finally the answer is saved in the cache for the next visitor.
A busy restaurant works the same way. The host (load balancer) seats each guest at a free table. The waiter (application server) first checks the hot shelf by the window (cache) for a ready dish, and only walks to the main kitchen (database) when needed. Popular dishes are kept ready so nobody waits long.
The lifecycle of a cloud resource
Every cloud resource, whether a server, a disk, or a database, goes through the same stages:
- Request: someone asks for it, ideally through a recorded, approved process.
- Provision: the provider creates it and starts the billing meter.
- Configure: you set its security, networking, and software.
- Run and scale: it serves users, and automatic rules add or remove copies as demand changes.
- Observe and maintain: you watch its health, apply updates, and take backups.
- Retire: you delete it, make sure its data is safely archived or erased, and confirm the billing has stopped.
The “retire” stage is the one people forget. Forgotten test servers and unattached disks quietly keep costing money every hour. Many surprise bills come from resources that nobody remembered to switch off.
How automatic scaling decides
Auto scaling is a loop. A monitor measures something, such as how busy the processors are. If the number crosses a rule you set, for example “above 70 percent busy for five minutes”, the system adds servers. When the number drops, it removes them. You define the rule once, and the cloud follows it around the clock.
9Advantages, Disadvantages, and Trade-offs
The cloud is powerful, but it is a trade, not a gift. Knowing both sides helps you decide when it is the right tool.
Advantages
- Low starting cost: no big purchase of hardware before you have a single customer.
- Speed: new resources appear in minutes instead of weeks.
- Elasticity: handle a sudden rush, then shrink back.
- Global reach: serve users in many countries from nearby locations.
- Built-in reliability: multiple zones, backups, and managed repairs.
- Focus: your team builds features rather than fixing machines.
Disadvantages
- Surprising bills: easy to create things, easy to forget them.
- Less control: you work within the provider’s rules and offerings.
- Lock-in: unique services make moving to another provider hard.
- Internet dependence: no connection means no access.
- Shared responsibility: security mistakes are still yours to prevent.
- Provider outages: a big failure can affect many companies at once.
The money trade: CapEx versus OpEx
Accountants talk about two kinds of spending. Capital expenditure (CapEx) is a large upfront purchase, like buying servers. Operating expenditure (OpEx) is a smaller, regular cost, like a monthly bill. The cloud turns CapEx into OpEx. That is wonderful for a young company with little cash and an uncertain future. For a large company with steady, predictable demand, however, owning machines can sometimes cost less over the years.
| Question | Cloud tends to win when… | Owning tends to win when… |
|---|---|---|
| Demand pattern | It rises and falls unpredictably | It is large and very steady |
| Starting budget | Small | Large and available |
| Speed to launch | Critical | Not urgent |
| Data rules | Flexible about location | Must stay in one exact place |
| Team skills | Few infrastructure experts | Strong operations team |
Real-world example: Dropbox and its own storage
Dropbox began by storing customer files on Amazon’s cloud. As it grew very large and its storage needs became steady and predictable, it built its own storage system and moved most customer files onto it, while still using the public cloud for other needs. The lesson is not “the cloud is bad”. It is that the best answer can change as a company’s size and shape change.
10Security: Who Protects What
Cloud providers protect the building. You protect what you put inside it. Both halves matter.
The shared responsibility model
Every major provider describes security as a partnership. The provider is responsible for the security of the cloud: the buildings, the hardware, the hypervisors, and the core network. You are responsible for security in the cloud: who can log in, how your data is protected, how your software is configured, and how your network rules are written.
Living in an apartment building is a good picture. The landlord secures the main gate, the walls, and the fire alarms. But if you leave your own front door open, the landlord cannot be blamed when something goes missing. In the cloud, the provider keeps the building safe, and you lock your own door.
The main layers of protection
Identity and access
Give every person and program only the permissions they need, which is called least privilege. Turn on multi-factor authentication, which asks for a second proof such as a phone code.
Encryption
Encryption scrambles data so only holders of a secret key can read it. Use it at rest (stored data) and in transit (data moving across networks).
Isolation
Place servers inside private virtual networks. Only the load balancer faces the internet, while databases stay hidden behind it and behind firewall rules.
Compliance
Many industries must follow rules about data, such as privacy laws or health and payment standards. Providers publish audit reports that help you prove you meet them.
Audit trails
Record every important action, so that after a problem you can answer who did what, and when.
Backups
Keep copies in a different zone or region, and practise restoring them. A backup you have never tested is only a hope.
Most cloud data leaks do not come from clever hackers breaking the provider. They come from simple misconfiguration: a storage bucket accidentally made public, an access key left in shared code, or a powerful account without a second login step. Careful setup prevents most of them.
A simple security habit list
- Never use the all-powerful root account for daily work; keep it locked away.
- Rotate and protect secrets such as passwords and keys, and never place them in public code.
- Keep software patched, or choose managed services where the provider patches for you.
- Review permissions regularly and remove anything that is no longer needed.
11Monitoring, Logging, and Metrics
You cannot fix what you cannot see. Good teams watch their cloud the way a pilot watches the cockpit instruments.
Because cloud systems are made of many moving parts that appear and vanish automatically, you need tools that constantly report what is happening. Three kinds of signals are used together, often called the three pillars of observability.
| Signal | What it is | Question it answers |
|---|---|---|
| Metrics | Numbers measured over time, such as processor use or requests per second | Is something wrong, and how big is it? |
| Logs | Written records of events, such as errors and logins | What exactly happened? |
| Traces | The path one request took across many services | Where did the time go? |
A car dashboard shows metrics: speed, fuel, and engine temperature. The black-box recorder in an aircraft keeps logs of everything that happened. A parcel tracking page that shows every stop on the route is a trace. You want all three, because each answers a different question.
What to measure
- Latency: how long requests take, especially the slowest few percent.
- Traffic: how many requests arrive.
- Errors: how many requests fail.
- Saturation: how full your resources are, such as memory or disk.
- Cost: daily spending per team or per project, so surprises appear early.
Alerts that help instead of annoy
An alert is a message sent to a person when a number crosses a danger line. Good alerts point to problems that real users feel, such as a rising error rate. Too many noisy alerts train people to ignore them. Pair every alert with a short written guide, sometimes called a runbook, that says what to check first.
Set a budget alert on day one. Every major provider lets you receive a warning when spending passes a limit you choose. It takes minutes to set up and can save a painful surprise.
12Cloud Networking Basics
Servers are only useful if they can talk to the right people and to each other. Cloud networking decides who can reach what.
In your own office, a network is cables, switches, and routers that someone physically installs. In the cloud, all of that is made of software. You draw your network with settings instead of wires, and the provider turns those settings into real traffic rules.
Your private slice of the network
A virtual private cloud (VPC), called a virtual network on some providers, is your own private, isolated section of the provider’s network. You choose its range of addresses, and nobody else’s resources can enter it unless you allow it. Inside it you create smaller sections called subnets. A public subnet holds things that must be reachable from the internet, such as a load balancer. A private subnet holds things that must stay hidden, such as databases.
Picture an office campus. The whole campus is your VPC, with a fence around it. The reception building at the gate is the public subnet, because visitors may walk in. The records room deep inside is the private subnet, and only staff with the right badge can enter. The security guard at each door is a firewall rule.
The main networking pieces
DNS
The Domain Name System turns a friendly name such as a website address into the numeric address of a server, like a phone book for the internet.
Firewalls and security groups
Rules that say which traffic may enter or leave a resource, based on where it comes from and which door, called a port, it uses.
Load balancers
Traffic directors that share incoming requests among healthy servers, and quietly stop sending requests to broken ones.
CDN
A network of edge locations around the world that keep copies of popular files close to users, so pages load quickly everywhere.
Gateways
Controlled exits and entrances. An internet gateway links your network to the internet, while a NAT gateway lets hidden servers make outgoing requests without being reachable from outside.
VPN and private links
Encrypted tunnels, or dedicated cables, that connect your company’s offices or data center to the cloud securely.
Only expose what must be exposed. A well-built system usually has just the load balancer reachable from the internet. Application servers and databases sit behind it in private subnets, where attackers cannot reach them directly.
13Databases and Storage Choices
Almost every application needs to remember things. Choosing where and how to keep data is one of the most important cloud decisions.
Relational and non-relational databases
A relational database stores data in tables with rows and columns, like a set of linked spreadsheets, and uses a language called SQL to ask questions. It is excellent when data has a clear structure and when accuracy matters a lot, such as bank balances or orders. A non-relational database, often called NoSQL, uses more flexible shapes, such as documents or simple key and value pairs. It is chosen when data changes shape often, or when the application needs to handle enormous numbers of requests spread across many machines.
A relational database is like a neatly organised filing cabinet with labelled folders and strict forms. A non-relational database is like a large set of labelled boxes where each box may hold different kinds of things. The cabinet is better for careful record keeping, and the boxes are better for speed and flexibility.
Why managed databases are popular
Running a database well is hard. You must install it, patch it, take backups, copy data to a standby machine, and repair it when something breaks. A managed database service does these chores for you. You choose a size, and the provider handles updates, automatic backups, and failover to a standby copy in another zone. Examples include Amazon RDS, Azure SQL Database, and Google Cloud SQL.
Storage classes and durability
Object storage services offer different storage classes, which trade price against how fast you can get your data back. Frequently used data goes in a standard class. Rarely used data, such as old records kept for legal reasons, goes in an archive class that costs far less but may take minutes or hours to retrieve.
Providers also speak about durability, which is the chance your stored data will not be lost. Object storage is designed so that each file is copied across several machines and buildings, which is why a single disk failure never loses your photo. Do not confuse durability with availability. Durability asks “will my data still exist?” while availability asks “can I reach it right now?”
| Need | Good fit | Why |
|---|---|---|
| Orders, payments, accounts | Managed relational database | Strong accuracy and clear structure |
| Huge numbers of simple lookups | Key and value or document database | Spreads easily across many machines |
| Photos, videos, backups | Object storage | Cheap, durable, nearly unlimited |
| Disk for one server | Block storage | Behaves like a fast local drive |
| Very fast repeated answers | In-memory cache | Answers in tiny fractions of a second |
14Scalability, High Availability, and Reliability
A good cloud system grows when needed, stays up when parts break, and recovers quickly when something truly goes wrong.
Scaling up versus scaling out
Vertical scaling means replacing a server with a bigger one, with more memory and processors. It is simple, but there is a limit to how big one machine can get, and swapping may need downtime. Horizontal scaling means adding more servers of the same size and sharing the work among them. It has almost no ceiling and it is the favourite approach in the cloud, but the application must be built so that many servers can work together.
If a single cashier at a supermarket cannot keep up, you can either hire one superhuman cashier who works twice as fast (vertical), or open more checkout lanes (horizontal). Even the fastest person has a limit, while extra lanes can keep growing as long as the shop has room.
High availability across zones
High availability means a service keeps working even when a part of it fails. The standard recipe is to run copies of every layer in at least two availability zones and let a load balancer send traffic only to healthy copies.
flowchart TB
U["Users"] --> LB["Load Balancer across zones"]
LB --> A1["App Server in Zone A"]
LB --> B1["App Server in Zone B"]
A1 --> DBP["Primary Database in Zone A"]
B1 --> DBP
DBP -. "continuous copy" .-> DBS["Standby Database in Zone B"]
Measuring availability
Availability is often written as a percentage of time a service is working, and people casually say how many “nines” they have. The small differences matter more than they look:
| Availability | Nickname | Allowed downtime per year |
|---|---|---|
| 99% | Two nines | About 3.65 days |
| 99.9% | Three nines | About 8.8 hours |
| 99.99% | Four nines | About 53 minutes |
| 99.999% | Five nines | About 5 minutes |
Providers publish a service level agreement (SLA) that promises a level of availability for each service and offers credits if they miss it. Your own application’s availability can never be higher than the services it depends on, so combining many services usually lowers the total.
Disaster recovery
Sometimes a whole region is lost, or data is damaged by mistake or attack. Two numbers guide your plan. The recovery time objective (RTO) is how long you can afford to be down. The recovery point objective (RPO) is how much recent data you can afford to lose. Shorter targets cost more, so teams pick them according to how important each system is.
Backup and restore
Cheapest option. Keep backups elsewhere and rebuild after a disaster. Recovery may take hours.
Pilot light
Keep the core data copied and a minimal version of the system ready in another region, then expand it when needed.
Warm standby
Run a smaller, fully working copy in a second region that can take over quickly and be scaled up.
Active in several regions
Run full copies in multiple regions at once. The most expensive and the fastest to recover, used for the most critical services.
15Pricing and Cost Management
Paying only for what you use is a gift, but only if you know how the meter runs and keep an eye on it.
How you are charged
Cloud bills usually combine three things: how much compute you use and for how long, how much data you store, and how much data moves in and out of the provider. Moving data into the cloud is typically free, while moving it out to the internet usually carries a fee, often called an egress charge. This surprises many beginners.
On-demand
Pay by the hour or second with no promises. Highest unit price, but perfect for tests, new projects, and unpredictable work.
Reserved or committed use
Promise to use a steady amount for a year or more in return for a significant discount. Best for workloads that run all day, every day.
Spot or preemptible
Use the provider’s spare capacity at a deep discount, knowing it may be taken back with short notice. Good for work that can pause and resume, such as large data processing.
Free tiers
Providers offer limited free usage of selected services so that you can learn safely. Always check the limits and the end date.
Pricing options resemble travel choices. A taxi is on-demand: you go anywhere any time, but pay the highest rate per trip. A monthly bus pass is committed use: cheaper per ride if you travel every day. A shared ride that may leave when the driver finds a better fare is spot capacity: very cheap, but not guaranteed.
Habits that keep bills small
- Tag everything with owner, project, and environment, so each cost has a name attached to it.
- Right-size servers by checking real usage and picking a smaller size when the machine is mostly idle.
- Switch off development and test environments at night and on weekends.
- Delete orphans, such as unattached disks, old snapshots, and unused addresses.
- Use storage classes so that rarely used data moves to cheaper archives automatically.
- Review monthly with both engineers and finance staff in the same room.
The practice of bringing technology and finance teams together to make smart cloud spending decisions is often called FinOps. Its main idea is simple: everyone who can create cost should also be able to see it.
A program with a bug can create resources in an endless loop, or a leaked access key can be used by strangers to start expensive servers. Budget alerts and tight permissions are your two best protections.
16Moving to the Cloud: Migration Strategies
Most companies were not born in the cloud. They move step by step, choosing the right path for each application.
A migration is the process of moving an existing application from your own machines to the cloud. There is no single best way, so teams decide for each application separately. The main choices are:
Rehost, or “lift and shift”
Move the application as it is onto cloud virtual machines. It is the fastest route and the least change, but it gains few cloud benefits.
Replatform
Move with a few smart upgrades, such as switching a self-run database to a managed one. A good balance of effort and reward.
Refactor or rebuild
Redesign the application to use cloud features such as containers, serverless functions, and automatic scaling. The most work, with the biggest long-term gain.
Replace
Drop the old application and adopt a SaaS product that does the same job, such as moving from a self-hosted email system to a hosted one.
Retire or retain
Switch off applications nobody uses, and leave behind those that cannot move yet because of rules or special hardware.
Moving house offers the same choices. You can carry every old piece of furniture to the new home (rehost), replace a few worn items on the way (replatform), buy all new furniture that fits the new rooms (refactor), rent a furnished flat (replace), or finally throw out what you never used (retire).
A sensible order of work
- Take inventory: list every application, who uses it, and what it depends on.
- Start small: pick a low-risk application first, so the team learns safely.
- Build the foundation: set up accounts, permissions, networks, monitoring, and cost controls before moving anything important.
- Move and test: migrate in stages, compare behaviour with the old system, and keep a way back.
- Improve afterwards: once things are stable, gradually modernise, so the move pays off.
Moving data can be the slowest part. Very large collections may travel faster on specialised transfer devices or dedicated network links than over ordinary internet, so plan this early.
17Design Patterns and Anti-patterns
A pattern is a proven recipe for a common problem. An anti-pattern is a tempting shortcut that usually hurts later.
Patterns worth knowing
Stateless servers
Keep no important memory inside an individual server. Store sessions and data in shared services instead, so any server can be added, removed, or replaced without anyone noticing.
Load balancing with auto scaling
Spread traffic over a group of identical servers and let the group grow and shrink with demand. This is the core of cloud elasticity.
Multi-zone deployment
Run copies of your application in at least two availability zones, so the loss of one building does not stop your service.
Queue-based decoupling
Put a waiting line, called a message queue, between parts of your system. A sudden burst of work waits politely in the queue instead of crashing the part that handles it.
Caching
Keep frequently requested answers in fast memory near the user, which lowers both delay and database load.
Infrastructure as code
Describe your servers and networks in written, version-controlled files, so environments can be created, copied, and repaired identically every time.
A queue is like the ticket counter at a railway station. When a crowd arrives, people line up and are served one after another. Without the line, everyone would push at the window at once and nobody would be served at all.
Anti-patterns to avoid
What it looks like
One special server holds everything: the application, the database, and the only copy of important files. Everyone is afraid to touch it, and it is configured by hand.
Why it hurts
If that one machine fails, the whole service and its data can vanish. It also cannot grow. People call such machines “pets” because they must be cared for individually, unlike “cattle”, which are identical and replaceable.
Better approach
Use several identical servers behind a load balancer, with data in a managed database and files in object storage.
What it looks like
A team copies its old data-center setup into the cloud unchanged, often called “lift and shift”, and never improves it afterwards.
Why it hurts
You pay cloud prices but keep old limits. Servers run all day at low use, nothing scales automatically, and managed services that could save effort are ignored.
Better approach
Treat the first move as a starting point. Gradually adopt managed databases, auto scaling, and queues, so you gain what the cloud actually offers.
What it looks like
Everyone in the team receives administrator rights “to keep things simple”, and nobody tracks costs.
Why it hurts
One mistaken click or one stolen password can delete data or run up a huge bill, and nobody can tell who caused it.
Better approach
Grant narrow permissions, tag every resource with an owner and a project, and set budget alerts.
18Best Practices and Common Mistakes
Good habits are simple. Most cloud trouble comes from skipping them, not from missing some advanced trick.
Best practices
- Design for failure: assume any single part can break, and make sure the whole survives.
- Spread across at least two availability zones.
- Automate creation of environments instead of clicking by hand.
- Tag resources with owner, project, and purpose.
- Choose managed services when you can, and save your effort for what makes your product special.
- Right-size: match server sizes to real usage, and review monthly.
- Test your backups and your recovery plan regularly.
- Review your design against your provider’s published well-architected guidance.
Common mistakes
- Forgetting to delete unused resources.
- Leaving storage or databases open to the whole internet.
- Storing secrets inside code that others can read.
- Running everything in one zone or one region.
- Ignoring costs until the first large bill arrives.
- Over-sizing servers “just in case” and never revisiting.
- Choosing a fashionable service without checking if it fits the problem.
- Skipping monitoring because “it is working today”.
Practising failure on purpose
Some teams go a step further and break things deliberately, in a controlled way, to prove their systems can cope. This practice is called chaos engineering. Netflix became well known for it with a tool named Chaos Monkey, which randomly shuts down servers during working hours so that engineers learn to build services that keep running regardless.
If you are new, begin with four steps: secure your main account with a second login step, set a budget alert, put data and servers in more than one zone, and practise restoring one backup. These four habits already prevent a large share of real-world cloud problems.
19Real-World and Industry Examples
Famous companies show how the ideas in this guide look when they are used at large scale.
Netflix: elasticity and resilience
Netflix moved its streaming service from its own data centers to Amazon’s cloud over several years, completing the streaming move in 2016. Demand for video is uneven, with large peaks every evening, and the cloud let Netflix add capacity when people sat down to watch and release it later. Its chaos engineering practice, described earlier, grew out of the need to stay online even when individual servers fail.
Spotify: using a provider’s data tools
Spotify moved its systems to Google Cloud, drawn in part by Google’s data processing services, which help analyse what listeners enjoy and power recommendations. It is a good example of choosing a provider for a specific strength rather than only for raw servers.
Airbnb: starting small and growing fast
Airbnb has long run on Amazon’s cloud. A booking platform sees seasonal swings, such as holiday and event rushes, and the cloud let a young company serve them without buying machines ahead of demand.
Salesforce and Gmail: software without servers
Millions of people use customer-management tools, email, and office documents through a browser every day. For them, the cloud is invisible. They only see a finished service that updates itself, works on any device, and needs no installation. This is SaaS at its simplest.
A bank or a hospital: hybrid in practice
Regulated organisations often keep their most sensitive records in controlled environments while using the public cloud for websites, mobile apps, and data analysis. Large banks such as Capital One have gone further and moved much of their work into a public cloud, showing that even heavily regulated companies can use it with the right controls.
Amazon itself
The company that began by selling books online now also runs a huge share of other companies’ systems. Its shopping site faces large spikes on big sale days, the kind of demand pattern that made elastic computing so valuable in the first place.
| Company | Main idea shown | Cloud benefit used |
|---|---|---|
| Netflix | Evening traffic peaks, designing for failure | Elasticity, multi-zone reliability |
| Spotify | Data analysis for recommendations | Managed data services |
| Airbnb | Seasonal growth | Pay-as-you-go capacity |
| Dropbox | Steady, huge storage demand | Mix of own systems and cloud |
| Salesforce | Business software in a browser | SaaS delivery |
20Where the Cloud Is Heading
The cloud keeps changing. Knowing the main directions helps you choose skills and designs that will last.
Artificial intelligence as a service
Providers now rent powerful processors and ready-made intelligent services, such as language, image, and speech tools. A small team can add these abilities to an application without owning any special hardware.
Edge computing
Instead of sending every request to a distant region, some work happens closer to the user, in small facilities, in shops, or even inside factories. This lowers delay for tasks such as video analysis and smart machines.
More serverless and managed services
Each year more routine work moves from your team to the provider. Developers spend less time on machines and more on features.
Multi-cloud and portability
Companies want freedom to move workloads, so open standards, containers, and common tools continue to grow in importance.
Energy efficiency
Data centers use a great deal of electricity, so providers invest in efficient hardware, better cooling, and cleaner power, and customers increasingly ask how their workloads affect energy use.
Security built in
Checks that once happened at the end of a project now happen automatically at every step, so mistakes are caught before they reach customers.
Think of how photography changed. People once had to develop film in a darkroom, then they used digital cameras, and now a phone does everything with one tap. The cloud follows the same path: each generation hides more of the machinery, so people can focus on the picture they want to take.
The basic ideas in this guide will not disappear, however. Virtual slices of shared hardware, pay-as-you-go billing, global regions, shared responsibility, and design for failure will remain the foundation, even as the services built on top of them change names.
21A Beginner’s Glossary
Keep this page handy. Every term below has appeared in this guide, now with a plain comparison you can remember.
| Term | Plain meaning | Everyday comparison |
|---|---|---|
| Server | A computer that serves files, apps, or answers to others | A waiter bringing what customers ordered |
| Data center | A building full of servers, power, and cooling | A giant warehouse for computers |
| Region | A geographic area with several data centers | A city branch of a big company |
| Availability zone | One separate data center location inside a region | A separate building on the same campus |
| Virtual machine | A software-made computer running inside a real one | One apartment inside a large building |
| Hypervisor | Software that creates and separates virtual machines | The building manager |
| Container | A light package holding an app and what it needs | A shipping container for software |
| Orchestrator | A system that places and manages many containers | An air traffic controller |
| Elasticity | Growing and shrinking resources with demand | An accordion that stretches as needed |
| Multi-tenancy | Many customers safely sharing the same hardware | Tenants sharing one apartment block |
| Load balancer | Shares requests among several servers | A host seating guests at free tables |
| CDN | Edge locations holding copies of popular files | Local shops stocking best sellers |
| API | A set of rules for programs to talk to a service | A restaurant menu and order form |
| Cache | Fast memory that holds recent answers | Keeping a favourite book on your desk |
| Queue | A waiting line for tasks | The line at a ticket counter |
| Auto scaling | Automatic adding and removing of servers | A shop opening extra counters at rush hour |
| Serverless | Running code without managing servers | Paying per slice, not for the whole pizza |
| Encryption | Scrambling data so only key holders can read it | A locked box with one key |
| Least privilege | Giving only the access that is truly needed | A hotel key that opens only your room |
| MFA | A second proof of identity beyond a password | Showing a card and a fingerprint |
| Observability | Seeing what a system is doing through metrics, logs, and traces | Gauges, black box, and parcel tracking together |
| SLA | A written promise about service level | A delivery-time guarantee |
| RTO and RPO | How long you can be down, and how much data you can lose | How fast the shop reopens, and which sales slips are lost |
| Egress | Data leaving the cloud to the internet | A toll charged on the way out |
| FinOps | Teamwork between engineering and finance on cloud spending | A shared household budget |
22Frequently Asked Questions
Short, plain answers to the questions beginners ask most often.
23Summary and Key Takeaways
Key Takeaways
- Cloud computing means renting computing resources over the internet and paying only for what you use, instead of owning and running your own machines.
- It has five essential traits: on-demand self-service, broad network access, resource pooling, rapid elasticity, and measured service.
- Services come in layers: IaaS for raw infrastructure, PaaS for a ready platform, SaaS for finished software, and serverless for pay-per-run code.
- Under the surface, virtualization and containers slice big machines into many small, isolated ones that software hands out automatically.
- Security is a shared responsibility: the provider protects the building, and you protect your accounts, data, and settings.
- Good design assumes failure: use several zones, stateless servers, queues, caching, and monitoring, and watch your costs from the first day.
- The cloud is a trade-off, not magic: it wins for speed and flexible demand, while steady giant workloads may justify owning hardware.