us-east-1 · N. VIRGINIAeu-west-1 · IRELANDEU-WEST-1AEU-WEST-1BEU-WEST-1CLOAD BALANCER1up = {"a": True, "b": True, "c": True}2up["b"] = False3print([z for z in up if up[z]])ZONE AupZONE BupZONE Cup
Buildings: availability zones in a region (plates)Front: the user, the health record in Python, the health checksMovers: requests, health pings, a backup copyCloud servers live in data centres. A region (here eu-west-1, Ireland) is a geographic area; inside it, availability zones are separate buildings with their own power, cooling and network. Copies of the app run in every zone behind a load balancer, which health-checks them: when zone 1b loses power, requests flow only to 1a and 1c. A backup in a second region (us-east-1) covers the rarer failure of a whole region. Figures are AWS's: every AWS region has at least three availability zones, many kilometres apart and all within 100 km of each other. Google Cloud and Azure use the same two levels, regions and zones, with their own names and numbers.

Where the cloud lives

  1. The cloud is not in the sky. A cloud provider rents you computers that sit in data centres: big buildings full of servers, with their own power, cooling and network links. Where those buildings are matters.

Spread across zones

When a zone fails

Beyond one region

What happens

;; step 1/10 · buildings
cloud server = a real computer
  in a data centre (a building)
  with power, cooling, network

you rent it; the provider runs the building
so: where is the building?

Figures are AWS's: every AWS region has at least three availability zones, many kilometres apart and all within 100 km of each other. Google Cloud and Azure use the same two levels, regions and zones, with their own names and numbers. The figure is simplified: real load balancers also run nodes in every zone, and a real app usually stores its data in a database that is copied between zones too.