We close the fundamentals chapter by grounding everything above in the concrete advantages that the cloud gives you. These are not brochure phrases: they are measurable benefits that change the way software is built. Let’s look at the three most important ones with real-world examples.

Advantage 1: Elasticity — grows and shrinks according to demand

Elasticity is the ability to automatically add or remove resources according to workload. We already introduced it as a NIST pillar; now let’s see why it changes the rules of the game.

The traditional problem: you bought hardware for the maximum peak you might have. The rest of the time, that expensive hardware sat idle.

With the cloud: you have few resources when there’s little demand and many when there’s a lot. You pay only for what you use at any given moment.

Real example — an online exam platform:

  • Normal days: 2 servers are enough.
  • Official exam day: 50,000 students log in at once → the platform automatically scales up to 40 servers for 3 hours.
  • When the exam ends: it goes back to 2 servers.

With your own hardware, they would have had to buy 40 servers to use them just a few hours a year. With the cloud, they pay for those 40 servers only during those 3 hours.

There are two ways to scale, and it’s worth distinguishing them:

Type What it does Analogy
Horizontal scaling Add more servers Hire more waiters
Vertical scaling Make the server more powerful Make the waiter run faster

In the cloud, horizontal is usually preferred because it’s more flexible and resilient. We’ll see it in depth in Chapter 13 (Auto Scaling).

Advantage 2: Pay-as-you-go — from CapEx to OpEx

With the cloud you don’t buy anything upfront: you pay for what you consume, like your electricity bill.

  • CapEx (capital expenditure): buying servers in advance. A lot of money tied up.
  • OpEx (operational expenditure): paying monthly for usage. Flexible and predictable.

Why it matters so much:

  • Lowers the entry barrier: a single person can launch a project with just a few euros a month.
  • Reduces risk: if the idea doesn’t work, you turn off the resources and stop paying. You don’t have €50,000 in useless hardware.
  • Cheap experimentation: trying a new idea costs just cents.

Real example: A developer has an idea for an app. He sets it up in the cloud for €15 the first month. If it succeeds, it scales and he pays more (because he’s earning more). If it fails, he shuts it down and has only lost €15. Twenty years ago, that same test would have cost thousands of euros in servers.

Caution: pay-as-you-go is a double-edged sword. If you leave resources running by mistake, the bill goes up. That’s why cost control (Chapter 25) is an important discipline. A good practice from day one: turn off what you’re not using.

Advantage 3: Availability and Global Reach

The major providers have data centers all over the world. That gives you two superpowers:

Global reach (speed for your users)

You can deploy your application close to your users, wherever they are, in a matter of minutes. The closer the server is to the user, the faster the application (less latency).

Real example: A European company launches its service in Brazil. Instead of building a data center there, it deploys in the AWS São Paulo region with a few clicks. Its Brazilian users have the same speed as Europeans.

High availability (your app doesn’t go down)

“Availability” means your service keeps running even if something fails. The cloud easily lets you distribute your application across multiple independent locations. If one goes down (due to a fire, power outage…), the others keep serving.

Real example: A bank distributes its application across three different locations in the same region. One suffers a power outage, but users don’t even notice: the other two automatically absorb the traffic.

This availability is measured in percentages you’ll see a lot:

Availability Downtime per year (approx.)
99 % ~3.65 days
99.9 % (“three nines”) ~8.8 hours
99.99 % (“four nines”) ~52 minutes
99.999 % (“five nines”) ~5 minutes

We’ll see how to achieve this resilience in Chapter 3 (regions and zones) and in Chapter 26 (high availability and disaster recovery).

Other advantages worth mentioning

  • Speed and agility: what used to take weeks now takes minutes. You innovate faster.
  • World-class security: major providers invest in security far more than an average company could (we’ll see this in Chapter 7 and Part VI).
  • No hardware maintenance: forget about broken disks and air conditioners.
  • Constant innovation: instant access to advanced services (artificial intelligence, big data…) without setting anything up.

What you should remember

  • Elasticity: you automatically adjust capacity to demand; you pay only for what you use at any given moment.
  • Pay-as-you-go (OpEx): no upfront investment, low risk, ideal for experimenting — but watch the bill.
  • Global reach and availability: you serve users worldwide quickly and keep your app running even if something fails.
  • These advantages are why practically all modern companies use the cloud.

With this, you finish Part I. You now understand what the cloud is, what problems it solves, and why it has become the standard. In Chapter 2 we’ll meet the major providers (AWS, Azure, GCP) and why we’ll learn AWS first.

Cloud, AWS & Terraform — From Zero to Expert

Chapter 1 · What is cloud computing

Chapter 2 · The cloud market and major providers

Chapter 3 · Regions, availability zones and edge

Chapter 4 · Compute: EC2

Chapter 5 · Storage: S3

Chapter 6 · Networking: VPC

Chapter 7 · Identity and access: IAM

Chapter 8 · Managed databases

Chapter 9 · Why Infrastructure as Code

Chapter 10 · HCL: the Terraform language

Chapter 11 · Providers and state

Chapter 12 · Your first real infrastructure in Terraform

Chapter 13 · Load balancing and auto scaling

Chapter 14 · Serverless with Lambda

Chapter 15 · Messaging and events

Chapter 16 · Content delivery and DNS

Chapter 17 · Containers on AWS

Chapter 18 · Modules: reuse and composition

Chapter 19 · Workspaces and environment management

Chapter 20 · Remote backends and locking

Chapter 21 · Infrastructure testing

Chapter 22 · Terraform in CI/CD

Chapter 23 · Defense in depth

Chapter 24 · Observability: logs, metrics and traces

Chapter 25 · Cost optimization

Chapter 26 · High availability and disaster recovery

Chapter 27 · AWS Well-Architected Framework

Chapter 28 · Serverless architectures at scale

Chapter 29 · Data platforms on AWS

Chapter 30 · Multi-account and landing zones

Chapter 31 · Platform Engineering and Internal Developer Platform

Chapter 32 · Relevant AWS certifications

Chapter 33 · Projects to consolidate what you've learned

Chapter 34 · Resources and community

© Copyright 2024. All rights reserved