Volume 12 · Chapter 6 — System Design Case Studies

Case Study: Multi-Region Resilient Banking System

Goutham Mayaluri 8 min read AWSCloudRegionSystem DesignBanking

6.1 The Problem and Requirements

Design a banking system that survives the loss of an entire AWS Region. Requirements: the critical banking services (payments, ledger, core accounts) must continue - or recover very quickly with minimal data loss - even if a whole Region becomes unavailable. Non-functionally, this means very low RTO and RPO for the critical systems, within regulatory data-residency constraints (the recovery Region may need to be in the same country), and it must justify the added cost and complexity. The defining requirement is Region-level disaster recovery for critical financial systems, which takes the resilience beyond the multi-AZ baseline into multi-Region territory - the highest and most demanding tier.

6.2 High-Level Architecture

The critical systems run active-passive across two Regions (in the same country for residency). The primary Region serves all traffic with the full multi-AZ architecture from the earlier cases; a secondary Region runs a warm standby - the critical services deployed and ready, and the database continuously replicated. Route 53 health checks the primary and, if it becomes unhealthy, fails traffic over to the secondary. Backups and data are replicated cross-Region, and infrastructure is defined as code so the secondary is provisioned identically. Less-critical systems use cheaper strategies (pilot light or backup-restore) to the secondary. This layers Region-level DR on top of the multi-AZ, redundant, automatically-recovering design.

flowchart TB
  Users((Users)) --> R53{Route 53\nhealth checks + failover}
  subgraph Primary[Primary Region - serves all traffic]
      P[Multi-AZ services + ACID ledger]
  end
  subgraph Secondary[Secondary Region - warm standby]
      S[Services deployed + ready]
      SDB[(Replicated database)]
  end
  R53 --> Primary
  R53 -. on Region failure .-> Secondary
  P -. async cross-Region replication .-> SDB

6.3 The Data Replication Challenge

The hardest part, as established in Volume 8, is cross-Region data replication, and it directly sets the RPO. For the critical ledger, the bank replicates the database to the secondary Region; the trade-off is between synchronous replication (no data loss but significant added write latency across Regions) and asynchronous replication (fast, but the secondary can lag slightly, so a sudden Region loss could lose the most recent unreplicated writes). Given the latency cost of synchronous cross-Region replication, the design typically uses asynchronous replication with a small RPO window that the bank accepts for most data, while applying the strongest available replication for the most critical financial state. This consistency-versus-latency-versus-data-loss trade-off is the crux, and naming it explicitly - “we accept a small RPO here because synchronous cross-Region replication’s latency is prohibitive” - is exactly the senior reasoning the design requires.

6.4 Failover Mechanics

Failover is orchestrated by Route 53: health checks continuously monitor the primary Region, and failover routing directs users to the secondary if the primary is unhealthy, with DNS TTLs tuned so failover propagates promptly (accounting for DNS caching). The secondary is a warm standby - services already deployed and the database replicated - so it can take over quickly, meeting the low RTO; a colder strategy (pilot light or backup-restore) would recover too slowly for critical systems. On failover, the secondary’s replicated database becomes primary and the ready services serve traffic. Crucially, this whole mechanism is tested regularly with failover exercises, because untested DR fails when needed - the bank rehearses Region failover so it’s a proven procedure, not a hope.

6.5 Cost, Complexity, and Trade-Offs

Multi-Region is the most expensive and complex tier, so the design applies it deliberately and only where justified. Critical systems (payments, ledger, core accounts) warrant warm standby active-passive because the impact of them being down or losing data is severe; less-critical systems use cheaper pilot-light or backup-restore strategies to the secondary, matching each system’s RTO/RPO to the cheapest strategy that meets it rather than gold-plating everything. The trade-offs are explicit: the cost and complexity of running a second Region and replicating data, and the RPO accepted from asynchronous cross-Region replication - both justified for critical financial systems by the requirement to survive a Region loss. Data residency constrains the Region choice. This deliberate, per-system, trade-off-aware application of multi-Region is the mark of a mature design.

6.6 Banking Production Notes

In production, this design lets the bank’s critical services survive a Region-level disaster: if the primary Region is lost, Route 53 fails traffic over to the warm-standby secondary, which takes over with the replicated data, recovering within the low RTO and small RPO the critical systems require. Regular failover testing proves it works. Less-critical systems recover more slowly and cheaply, appropriately. This builds on all the earlier cases - the payment, platform, and fraud systems run within this multi-Region resilience envelope - showing how Region-level DR wraps the whole banking platform for the critical parts. It’s the culmination of the resilience discipline: multi-AZ for common failures, multi-Region for Region-level catastrophe, tested and matched to requirements.

6.7 Troubleshooting the Design

Multi-Region design weaknesses are recognizable. Using a cold strategy (backup-restore) for critical systems would miss the low RTO - use warm standby for those. Ignoring cross-Region replication lag would risk losing more data than the RPO allows - use appropriate replication and accept a defined RPO. Applying expensive active-active or warm standby to everything wastes money - match each system’s strategy to its RTO/RPO. Not testing failover means it may fail when needed - rehearse it regularly. Ignoring data residency could put data in the wrong jurisdiction - choose the secondary Region within constraints. Relying on multi-Region for common failures that multi-AZ handles is over-engineering the wrong layer. The design’s essence is warm-standby active-passive for critical systems with tested Route 53 failover and accepted-RPO replication, cheaper strategies for the rest, all within residency constraints and justified by the Region-failure requirement.

Interview Question

Design a banking system that survives the loss of an entire Region. What's the hardest part?

I’d design the critical systems as active-passive across two Regions, with the hardest part being cross-Region data replication, which directly sets the recoverable data loss. The requirement is that critical banking services - payments, ledger, core accounts - continue or recover very quickly with minimal data loss even if a whole Region is lost, meaning very low RTO and RPO, within regulatory data-residency constraints that may require the recovery Region to be in the same country, and justifying the added cost and complexity - so this goes beyond the multi-AZ baseline into multi-Region, the highest tier. The architecture: the critical systems run active-passive across two Regions in the same country; the primary serves all traffic with the full multi-AZ design, and the secondary runs a warm standby with the critical services deployed and ready and the database continuously replicated. Route 53 health checks the primary and fails traffic over to the secondary if it becomes unhealthy, with DNS TTLs tuned so failover propagates promptly; infrastructure is defined as code so the secondary is provisioned identically; and less-critical systems use cheaper pilot-light or backup-restore strategies to the secondary. The hardest part is cross-Region data replication, because it sets the RPO and involves an unavoidable trade-off: synchronous cross-Region replication guarantees no data loss but adds significant write latency across the distance between Regions, while asynchronous replication is fast but lets the secondary lag slightly, so a sudden Region loss could lose the most recent unreplicated writes. Given the prohibitive latency of synchronous cross-Region replication, the design typically uses asynchronous replication with a small accepted RPO window for most data while applying the strongest available replication to the most critical financial state - and naming that trade-off explicitly, “we accept a small RPO here because synchronous cross-Region replication’s latency is prohibitive,” is exactly the reasoning required. Failover is orchestrated by Route 53 health checks and failover routing, and the secondary is a warm standby so it can take over quickly enough to meet the low RTO - a colder strategy would recover too slowly for critical systems - and crucially the whole failover is tested regularly, because untested DR fails when needed. On cost and complexity, multi-Region is the most expensive tier, so I apply it deliberately: warm-standby active-passive for the critical systems whose downtime or data loss is severe, and cheaper strategies for less-critical systems, matching each system’s RTO/RPO to the cheapest strategy that meets it rather than gold-plating everything, all within data-residency constraints on the Region choice. So I’d design warm-standby active-passive across two in-country Regions with tested Route 53 failover, cross-Region database replication as the crux with a deliberately-accepted RPO from asynchronous replication, and cheaper DR for non-critical systems - and I’d emphasize that cross-Region data replication, with its consistency-versus-latency-versus-data-loss trade-off, is the hardest part and the one that most defines whether the design meets its RPO.

Chapter Revision Notes

  • Requirement: survive a whole-Region loss for critical systems - very low RTO/RPO within data-residency constraints, justifying cost and complexity.
  • Critical systems run active-passive: primary multi-AZ, secondary warm standby with replicated data; Route 53 health checks and failover routing switch traffic.
  • The hardest part is cross-Region data replication, which sets the RPO: synchronous (no loss, high write latency) vs asynchronous (fast, small accepted RPO).
  • Warm standby meets low RTO; test failover regularly; use cheaper pilot-light/backup-restore for less-critical systems (match strategy to RTO/RPO).
  • Apply multi-Region deliberately and per-system, naming the cost/complexity and accepted-RPO trade-offs - multi-AZ handles common failures, multi-Region the Region-level catastrophe.