Cloud Regions and Availability Zones Explained
You order dinner on a delivery app one evening. Somewhere, a cloud data centre has just lost power, yet your order goes through. A few months later, the news reports a cloud outage that takes many well-known apps offline for hours. Both stories come down to where an app's servers run. This lesson explains regions and availability zones: what they are, why apps spread across them, and how to pick one.
Regions: where in the world your servers run
As you saw in What Is Cloud Computing?, a provider fills data centres with servers. A region is one geographic area where it runs a group of them. Amazon Web Services (AWS) has regions in Mumbai, Frankfurt, Singapore, Northern Virginia and dozens of other places.
Each region has a short code. Mumbai is ap-south-1, shown in the AWS console as Asia Pacific (Mumbai). When you create a server, you choose its region, and it stays there: the cloud does not move it for you.
Regions run largely separately, and a fault in one is designed to stay there. Each has its own prices, its own list of services and its own endpoints: the web addresses programs send requests to, such as ec2.ap-south-1.amazonaws.com for servers in Mumbai.
Availability zones: separate sites in one region
An availability zone (AZ) is one or more data centres inside a region with their own power, cooling and network connections. An AWS region usually has three or more: Mumbai and Frankfurt have three each, and Northern Virginia has six.
AZs are kept apart, so a fire, flood or power cut at one should not reach the others. On AWS they sit many kilometres apart, yet within about 100 kilometres of each other, joined by fast private fibre links. That keeps latency, the time data takes to travel between them, to a few milliseconds (thousandths of a second).
An AZ's name is the region code plus a letter, such as ap-south-1a. Azure also says regions and availability zones, while Google Cloud says regions and zones; the next lesson compares the three providers.
The map shows three AWS regions. Notice that the short, fast links join AZs inside one region, while the long gaps lie between regions.
Why spread across zones and regions
If every copy of your app sits in one AZ, one power cut there takes it down. So teams run copies in at least two AZs behind a load balancer, a service that receives users' requests and shares them among your servers.
The load balancer keeps sending small test requests, called health checks, to each server, and stops sending users to any that fail them. On AWS, the load balancer itself runs in every AZ you enable, so losing one zone does not take it down too.
Follow the four steps. Until the failed health checks add up, some requests may get errors; after that, AZ b serves everyone.
Two things must already be true. AZ b needs enough servers for all users, or a way to add more, which autoscaling covers later. And the app's stored data must be copied to AZ b too, a topic for managed databases. Together these keep uptime, the share of time a service works, high.
Several regions protect against rarer, bigger events. A whole region can suffer an outage, for example when a software fault hits a service all its AZs depend on. Distance matters too: users in Europe get faster pages from Frankfurt than from Mumbai. The third reason is the law.
Choosing a region
Most apps pick one main region and spread across its AZs. Four questions, in order, narrow the choice.
Data residency comes first: rules about the country where data must be stored. For example, the Reserve Bank of India requires payment companies to store payment data only in India. A rule like that removes every other region before anything else counts.
Latency to users comes next. Signals in fibre travel at about two-thirds of the speed of light, but distance adds up: a round trip from Mumbai to Northern Virginia takes roughly 200 milliseconds (an illustrative figure), against a few within one city. Pick a region near most of your users.
Price is third: the same server can cost a different hourly price in each region, as the pricing page in lesson 1 showed. Services are last, because new services often reach some regions before others, so check the provider's list of services by region.
In the flowchart, notice the loop: if the cheapest region lacks a service you need, you try the next one.
The cost of spreading out
Spreading out is not free. Data sent between AZs in one region may be billed per gigabyte; on AWS, data between servers in different AZs is charged both out of one zone and into the other. Data between regions usually costs more, so a chatty app can build up a bill nobody planned.
More regions also mean more to run: more servers to pay for, more places to update and watch, and harder work keeping data the same everywhere. So a common pattern is several AZs in one region, adding a region only when outages, users or law require it. Cloud Cost Basics covers keeping the bill in check.
Check yourself
Your app runs on two servers behind a load balancer, both in ap-south-1a. Why can one power cut still take it down?
Both copies share one AZ, so one failure hits both; putting the second in ap-south-1b lets the zones fail separately.
An Indian payments startup with Indian users finds servers cheaper in Northern Virginia. Why should it still pick a region in India, such as Mumbai?
The residency rule removes regions outside India before price counts, and its users also get lower latency from a nearby region.
Why not run every app in five regions, just to be safe?
Each region adds servers to pay for, cross-region transfer charges and more to update and keep in sync, while several AZs in one region already survive most failures.