02Chapter 2: Setting goals: availability, latency, RTO and RPOActive-active costs more to build and run than a single region. Numeric goals tell you whether the extra cost is justified, and they constrain every later design choice. This chapter shows how to turn "the service should always be up and fast" into numbers you can test.6 min read
03Chapter 3: Consistency trade-offs: CAP, PACELC and consistency modelsThis chapter assumes you know what active-active means, can read basic Python, and have used a relational or NoSQL database. It covers the theory you need before choosing a replication strategy. Later chapters apply it to replication, write ownership and conflict resolution.6 min read
04Chapter 4: Routing users to regions: DNS, anycast and global load balancingThis chapter assumes you know how DNS resolution works (resolvers, records, TTLs), what a Layer 4 or Layer 7 load balancer does, and the basic active-active idea of several regions serving live traffic. It covers the three main ways to send each user to a region, what each one gets wrong, and how to6 min read
05Chapter 5: Health checks and automatic failoverThis chapter assumes you know how DNS records and TTLs work, what a load balancer does, and the basics of global traffic routing from the previous chapter. It covers how a multi-region system decides that a region is unhealthy, how it moves traffic away, and how that decision goes wrong.6 min read
06Chapter 6: Keeping compute stateless and handling sessionsThis chapter assumes you know how load balancers and DNS route traffic, what a web session cookie is, and the basics of a key-value store or relational database. It covers why compute in an active-active design must hold no durable state, and where session data goes instead.6 min read
07Chapter 7: Replicating data across regionsThis chapter assumes you know basic cloud networking, stateless services behind load balancers, and the difference between relational and NoSQL stores. It also assumes you have read the earlier chapters on CAP, PACELC and consistency models. Here you will see how data moves between regions, what eac7 min read
08Chapter 8: Avoiding conflicts with write ownership and partitioningThis chapter assumes you know the basics of cross-region replication, the difference between synchronous and asynchronous replication, and what a conflict is when two regions accept writes to the same record. It covers the strategy that avoids most conflicts instead of resolving them: make sure only6 min read
09Chapter 9: Resolving conflicts: last-writer-wins, version tracking and CRDTsThis chapter assumes you know the basics of asynchronous cross-region replication and why concurrent writes happen in an active-active design. It also assumes you can read short Python programs. You should know that two regions can accept a write to the same item before either sees the other's chang6 min read
10Chapter 10: Replicating events and messages between regionsThis chapter assumes you know basic cloud networking, how queues and topics work, and the replication ideas from the previous chapters (asynchronous replication, write ownership, conflict resolution). It covers how events travel between regions and what that means for correctness.5 min read
11Chapter 11: Idempotency and safe retriesThis chapter assumes you know basic HTTP APIs, how DNS-based failover moves traffic between regions, and what asynchronous replication means. It covers how to make operations safe to repeat, which matters because active-active systems retry constantly.6 min read
12Chapter 12: Failure modes: regional outages, partial failures and split brainThis chapter covers the ways a multi-region system fails and how each failure looks from the inside. It assumes you know basic DNS and load balancing, the difference between synchronous and asynchronous replication, and the consistency trade-offs from the earlier chapters. Active-active designs surv7 min read
13Chapter 13: Capacity planning and surviving the loss of a regionThis chapter assumes you know how health checks and DNS failover move traffic between regions, and what RTO and RPO mean. It covers a question those mechanisms leave open: when a region fails, can the remaining regions carry its load?5 min read
14Chapter 14: Observability, replication lag and failure testingThis chapter assumes you know the earlier material: regions serve live traffic, data replicates asynchronously between them, and health checks drive failover. Here you will learn what to measure, how to detect replication problems early, and how to test that the design survives real failures.7 min read
15Chapter 15: Data residency and compliance constraintsThis chapter assumes you know basic cloud networking and DNS, stateless services behind load balancers, and the replication models from the earlier chapters. Active-active designs copy data between regions by default. Residency and compliance rules can forbid that copying for some data. This chapter6 min read
16Chapter 16: Cost, complexity and when not to use active-activeThis chapter assumes you have read the earlier chapters on RTO and RPO, replication, conflict resolution, failover, and capacity planning. Here you weigh what active-active costs against what it gives you, and learn to recognize workloads where a simpler design is the better engineering choice.5 min read