Bitpath

Lesson 2 · Unit 01

Regions and zones

Regions, zones, edge locations and the arithmetic of two

13 exercisesabout 3 min

What you practise

  • Regions, availability zones and edge locations, latency by distance, availability of one zone against two worked as arithmetic

Try a question from this lesson

Pick one

A shop's servers all sit in one building, and it loses power. Where should a second copy run so it survives, yet stays close enough to mirror every write?

The ideas

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

Region, zone, edge

A region is a geographic area where the provider clusters datacenters. You choose it.

An availability zone is one or more separate datacenters inside a region, with their own power and network: far enough apart to fail alone, close enough to replicate quickly.

Edge locations are many small sites near users that cache, answer DNS and run small code.

AWS uses exactly these three names. Cloudflare runs one global network instead, and Workers have no region to pick.

region
+--------+ +--------+ +--------+
| zone a | | zone b | | zone c |
+--------+ +--------+ +--------+

edge sites: many cities, near users

Concept

Series and parallel

Parts a request needs in a row are in series: all must work, so multiply their availabilities.

Parts that can stand in for each other are in parallel: all must fail together, so multiply their failure chances.

One zone up 99% of the time is down 1%. Two independent zones are both down 1% of 1%: 0.01%. Together they are up 99.99%.

Independence is the assumption. A bug deployed to both zones at once breaks it.

series    A and B   a * b
parallel  A or B    1 - (1-a) * (1-b)

10 more exercises in the app

  • 1× match the pairs
  • 3× type the answer
  • 3× multiple choice
  • 1× fill the blanks
  • 1× true or false
  • 1× order the lines

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy