Skip to content
Mermaid templates

Multi-Region Failover

Active/passive multi-region with DNS failover and async replication.

Template previewMermaid
Rendering…

Make it your own.

flowchart LR
Users --> DNS[Geo-DNS / Route 53]
DNS -- primary --> R1
DNS -. failover .-> R2

subgraph R1 [Region us-east-1 — primary]
  LB1[Load balancer] --> API1[API tier]
  API1 --> DB1[(Postgres primary)]
end
subgraph R2 [Region eu-west-1 — standby]
  LB2[Load balancer] --> API2[API tier]
  API2 --> DB2[(Postgres replica)]
end

DB1 ===|streaming replication| DB2
S3a[(S3 us-east-1)] -.->|cross-region replication| S3b[(S3 eu-west-1)]