AppSquadz Software Pvt. Ltd. logo AppSquadz Software Pvt. Ltd. Multi-Region Disaster Recovery Demo Mumbai Region (ap-south-1)

RPO , RTO and Architecture

How this application survives the loss of an entire AWS region — and how long it takes.

RPO — Recovery Point Objective
0
zero data loss

The drill uses Aurora's Switchover, which synchronises every secondary before roles change. No committed transaction is lost.

RTO — Recovery Time Objective
≈ 2 min 50 sec
to serving from ap-south-2

Sum of the four phases below, from your configured health check and DNS values. Time the real drill and compare.

Architecture

Active–Active across two Indian regions, with one database that spans both.

Amazon Route 53 Failover routing · health check on the primary endpoint
Active → primaryActive → STANDBY
Mumbai ap-south-1 Primary
  • EC2 web server + Elastic IP
  • Apache, PHP, this application
  • Aurora cluster — writer
Hyderabad ap-south-2 Standby
  • EC2 web server + Elastic IP
  • Identical code and configuration
  • Aurora cluster — reader
Amazon Aurora Global Database Storage-level replication, latency typically under one second

AWS services in use

ServiceWhereWhat it does here
Amazon EC2 ap-south-1, ap-south-2 One web server per region running Apache, PHP and this application.
Elastic IP ap-south-1, ap-south-2 A fixed public address per server, so the DNS records stay valid across a stop and start.
Aurora Global Database both regions Replicates the primary into ap-south-2 at the storage layer, and provides one-command switchover of the writer between regions.
Amazon Route 53 global Failover routing with a health check on the primary. Traffic moves to the standby region automatically when the check fails.

Where the recovery time goes

Planned drill, in order. Each phase is measured or taken from your configuration.

#PhaseDurationDetermined by
1 Aurora switchover to ap-south-2 30 sec AWS managed operation. Typically under 30 seconds; no data loss.
2 Mumbai EC2 stop 1 min Instance shutdown. This is the drill's simulated failure.
3 Route 53 detects the failure 20 sec 10s interval × 2 failed checks
4 Cached DNS answers expire 1 min Record TTL of 60s
Total recovery time ≈ 2 min 50 sec Client traffic now served from ap-south-2

Treat the total as a floor rather than a promise. Route 53 needs a moment to propagate a health status change beyond the raw interval, and resolvers do not always honour a TTL exactly, so a timed drill usually lands somewhat above the arithmetic.

Planned switchover vs. real disaster

Switchover this drill

Used for
Rehearsals, maintenance, regional rotation — everything healthy.
Data loss
RPO = 0
Recovery time
≈ 2 min 50 sec
How
Secondaries are synchronised first, then the roles are exchanged.

Failover real outage

Used for
The primary region is unreachable and cannot be synchronised.
Data loss
RPO in seconds
Recovery time
≈ 1 min 50 sec
How
The standby is promoted immediately. Anything not yet replicated is lost — replication lag is typically under one second.

What the drill button does

  1. Switch the Aurora writer to ap-south-2, and wait until it really is the writer
  2. Stop the Mumbai EC2 instance — the simulated regional failure
  3. Route 53's health check fails and traffic resolves to the Hyderabad Elastic IP
  4. To return: start Mumbai, wait for its EC2 status checks, switch the writer home

The database always moves before the server stops, so the region taking traffic is never pointed at a database that cannot accept writes.

Scope of this demo

Stated plainly, so the numbers above are not read as more than they are.