In the previous subchapter, we saw that traditionally, offering a service on the internet meant buying and maintaining physical servers. It worked, but it had some very specific headaches. The cloud was born to solve them. Let’s look at them one by one with real examples.

Problem 1: Paying a Lot of Money Upfront (CapEx)

To set up your service, you needed to buy the servers before having a single customer.

Real example: A startup wants to launch an online store. It estimates it will need 10 servers. Each one costs €5,000. Before selling anything, it has already spent €50,000. If the business doesn’t work out, that money is almost lost.

This initial expense on physical goods is called CapEx (Capital Expenditure). The cloud turns it into OpEx (Operational Expenditure): you pay small monthly amounts for what you use, like an electricity bill.

Problem 2: Guessing Capacity (and Almost Always Failing)

You had to decide how many servers to buy without knowing how many people would come. There were only two outcomes, and both are bad:

  • You fall short: lots of people arrive, the servers get overloaded, and the website crashes. You lose sales just when demand is highest.
  • You overdo it: you buy too many “just in case” and most of the time those expensive servers are running doing nothing.

Real example: A concert ticket sales website has normal traffic all year, but the day tickets for a famous artist go on sale it gets 100 times more visits for one hour. Do you buy 100 times more servers to use them for one hour a year? Or do you let the website crash that day?

The cloud solves this with elasticity: you add capacity in minutes when needed and remove it when it’s not, paying only for the hours you used it.

Problem 3: Waiting Time (time-to-market)

Buying and installing physical servers took weeks or months: requesting quotes, waiting for delivery, assembling, cabling, installing the operating system, configuring the network…

Real example: Your boss asks you for a new server to test an idea. In a traditional datacenter, it could take 6 weeks to have it ready. In the cloud, you have it running in 2 minutes from a web page.

The cloud turns a weeks-long task into a minutes-long one. That allows for cheap and fast experimentation.

Problem 4: Maintenance and Breakdowns

Physical servers break: hard drives fail, power supplies die, fans get stuck. Someone had to:

  • Be on call 24/7.
  • Keep spare parts in stock.
  • Physically replace broken hardware.

All that costs money and specialized personnel. In the cloud, the provider takes care of the hardware. If a physical disk fails, it’s AWS’s problem, not yours.

Problem 5: Reaching Users All Over the World

If your datacenter is in Madrid, a user in Japan will notice the website is slow because their data has to cross half the planet. Setting up your own datacenter in Japan would be extremely expensive.

Real example: A Spanish company wants to sell in Latin America. Instead of building a datacenter in Mexico, it rents servers in the AWS region closest to its customers and serves them quickly from there. It does this in minutes, without traveling or building anything.

The cloud offers global presence: you have datacenters available in dozens of countries ready to use.

Problem 6: Disaster Recovery

What happens if your server room floods, there’s a fire, or a prolonged power outage? With a single datacenter, you lose everything. Having a second backup datacenter was extremely expensive.

The cloud allows you, affordably, to replicate your data and systems in multiple locations so that if one fails, another keeps running.

Summary: The “Before” and “After”

Traditional Problem Cloud Solution
Large upfront investment (CapEx) Pay-as-you-go monthly (OpEx)
Guessing capacity Elasticity: scale up and down
Weeks to get a server Minutes to provision
You maintain the hardware Provider maintains the hardware
Hard to reach other countries Global presence ready to use
Disasters = total loss Affordable multi-location replication

What You Should Remember

  • The cloud didn’t invent the internet; it solved the economic and operational problems of having your own servers.
  • The two key ideas are pay-as-you-go (no upfront investment) and elasticity (you pay only for what you use, when you use it).
  • It also brings speed, global reach, and resilience at an affordable cost.

In the next subchapter, we’ll compare the three major deployment models: on-premise, cloud, and hybrid, so you know when each one is appropriate.

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