Multi-region trade-offs
When a region becomes the failure domain
A regional architecture may tolerate one zone failure but not a region-wide outage. Multi-region architecture can reduce exposure to regional faults if dependencies, data, capacity and traffic routing really survive. Consider two regions East and West with independent regional routers, application pools and local credentials. A global DNS or identity dependency may remain shared. Replicating the same faulty deployment or incompatible database migration to both regions can disable both. Keep staged rollouts, independent recovery access, and a known-good version. Region choice must also respect data location, legal and business constraints; do not assume any region is acceptable.
Compare active/passive with active/active
Active/passive sends production traffic to a primary region while the secondary is prepared for takeover. A cold or pilot-light environment saves steady-state expense but requires provisioning; warm standby keeps some capacity running; hot standby keeps more ready. These are descriptive patterns, not uniform provider definitions. Active/active serves production traffic from both regions; it can reduce normal user latency and keep both exercised, but introduces cross-region routing, data ownership, conflict handling and operational complexity. Active/active application servers do not imply active/active database writes. One logical writer, partitioned ownership or a database with a suitable coordination protocol can each be valid. Before promoting a replica, prove the old writer cannot accept conflicting writes (fencing) and assess replication lag. DNS caches, client connection pools and failback all need explicit procedures.
Assume two active regions each sustain 140 requests/s and share a peak of 200 requests/s evenly. Both are fine normally; after either region fails, the survivor lacks 60 requests/s. Each needs 200 ready capacity to serve the entire load, or 250 at 80% target utilization. Choose which safe features degrade if that cost is unacceptable. Check data-service and network throughput after failover as well.
Model correlated failure and cost honestly
If each independent region is unavailable for 1% of the time and either can serve all demand immediately, simultaneous unavailability is 0.01 × 0.01 = 0.0001 (0.01%). If an independent shared dependency is down 0.5% of the time and is required, overall availability in this simplified stationary model is (1 - 0.005) × (1 - 0.0001) = 0.9949005, or 99.49005%. This example excludes failover delays, capacity limits, correlated regional failures and measurement differences. Shared software bugs invalidate the independence assumption; never multiply advertised SLAs to claim real application availability.
A fictional monthly budget: primary $600, standby $350, replicated data 500 GB at $0.04/GB, shared services $80. Total = $1,050. An active/active design with two $600 regions and the same replication and shared costs totals $1,300. Increment is $250. Include storage, cross-region transfer, monitoring, standby capacity, licenses, drills and on-call overhead in a real estimate. The numbers are invented, not provider pricing. Multi-region may not be justified if tested regional HA plus backup recovery meets the business targets.
Offline lab: admission and recovery decisions
Use Python 3 with no dependencies. The function treats every request as equal-cost, takes already-ready capacity per surviving zone, and assumes required dependencies are either usable or unavailable. It is an aggregate model for one second, not a real scheduler or failover controller. Critical traffic is served first; optional traffic uses spare capacity. Returning zero for a missing writer is a safety decision, not a claim that every route is down. Recovery requires fencing, data correctness, successful customer outcomes, acceptable latency and a completed observation interval.
def route_checkout(router, identity, writer, capacities, critical, optional, recommendations=True): # Fixed trusted inputs: capacities and demand are nonnegative integers. # Each capacity is already-ready, usable requests per second. if not (router and identity and writer): return 0, 0, critical, optional, "UNAVAILABLE" capacity = sum(capacities) accepted = min(critical, capacity) extras = min(optional, capacity - accepted) if recommendations else 0 mode = "SHEDDING" if accepted < critical else ( "DEGRADED" if extras < optional else "HEALTHY") return accepted, extras, critical - accepted, optional - extras, mode
def recovery_decision(writer_fenced, data_ok, checkout_ok, latency_ok, observation_complete): # Positive mock observations only; no failover or fault injection occurs. if not writer_fenced or not data_ok: return "STOP" if not checkout_ok or not latency_ok or not observation_complete: return "HOLD" return "RECOVERED"
print(route_checkout(True, True, True, [120, 0], 100, 80))print(route_checkout(True, True, False, [120, 120], 100, 80))print(recovery_decision(True, True, True, True, False))print(recovery_decision(True, True, True, True, True))Expected output:
(100, 20, 0, 60, 'DEGRADED')(0, 0, 100, 80, 'UNAVAILABLE')HOLDRECOVEREDChange critical demand to 150 with one surviving 120-capacity zone. Predict 120 accepted critical, 30 rejected critical, zero accepted optional and 80 rejected optional. Set recommendations to False even with ample capacity: checkout should remain available but optional work is rejected. Test missing identity and an unfenced writer. In real systems evaluate readiness, client deadlines, dependency health, priorities and concurrency continuously. The sample does not implement retries, consensus, persistence or real traffic routing.
Verify recovery through user outcomes
Create a paper exercise with a baseline, hypothetical zone loss, hypothetical writer outage and hypothetical regional outage. Record expected routing, capacity, replication state, rejection rate and customer-visible outcomes. A green infrastructure dashboard is not recovery evidence. Confirm authorized checkout, correct inventory mutation, durable order record, no duplicate charge, latency within target and error rate acceptable over a defined observation period. Reconcile any ambiguous transactions before restoring normal traffic. Measure time from fault to confirmed recovery and the actual lost or duplicated business records; compare to objectives. A successful synthetic request alone does not establish full recovery. Check monitoring, alarms, backup integrity, on-call ownership and the failback procedure.
No real fault injection is part of this lab. Any later controlled experiment needs explicit authorization, isolated scope, monitored safety thresholds, stop conditions, rollback, recovery owner and approved change window. Prefer a disposable environment. Do not induce failures in shared systems or production as a learning exercise. Review AWS multi-location guidance, Azure regions and zones and Google multi-region archetype for service-specific planning. Next chapter distinguishes backup, disaster recovery and business continuity.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Multi-region trade-offs — knowledge check
Choose the best answer for each offline scenario.
Both active regions can serve 140 requests/s each. Peak is 200. What must a survivor handle to preserve all demand?
What breaks the simple independent-region probability model?
What must be verified before promoting a new writer?
What is the fictional active/active cost increment?
When does the offline recovery model report RECOVERED?