India’s Leading Domain & Web Hosting Provider
Payment gateway reaches a 22-minute regional failover between Mumbai and Delhi
RBI-authorised online payment aggregator, 900 merchants, 380 employees · Pan-India, primary operations in Mumbai · 10 weeks
As-is situation
The gateway processed about 1.4 million transactions a day on GKE in asia-south1 with Cloud SQL for PostgreSQL Enterprise edition in a single zone. Its DR plan was a nightly pg_dump copied to a Cloud Storage bucket in the asia multi-region, which the compliance team flagged as a payment data localisation risk. A zonal incident during a festive sale stalled authorisations for 47 minutes while engineers rebuilt the database from the previous night's dump and replayed failed transactions from merchant callbacks. The RBI inspection checklist asked for a documented DR site, drill results and evidence that payment data never left India.
- Single-zone Cloud SQL with no standby; a zonal event meant a full restore
- Effective RPO of up to 24 hours from nightly dumps, against a business target under one minute
- Backup copies in the asia multi-region conflicted with India-only storage of payment data
- No DR drill had ever been run end to end
Selected Google Cloud services and architecture
NTSPL upgraded the database to Cloud SQL Enterprise Plus with high availability across two Mumbai zones and a cross-region DR replica in asia-south2. GKE moved to a regional cluster in Mumbai, with a smaller regional cluster in Delhi kept warm from the same Artifact Registry images through Config Sync. A global external Application Load Balancer fronts both, and Cloud DNS failover handles the merchant API hostname. Backup and DR Service now writes Cloud SQL backups to a regional vault in Mumbai with 35-day enforced retention, and the pg_dump bucket in the multi-region was deleted. Organization Policy restricts every location to asia-south1 and asia-south2.
Implementation approach
Measured results
Operational improvements
- Replica promotion and DNS switch run from one approved Cloud Build pipeline instead of a 40-step wiki page
- On-call receives replication lag alerts at 5 seconds, well before the 60-second RPO is at risk
- Planned maintenance on the primary now uses near-zero downtime maintenance instead of announced merchant downtime
Cost considerations
Enterprise Plus edition and the Delhi replica were the main cost increase. The team bought a three-year committed use discount for the Mumbai primary but kept the Delhi replica on demand and one size smaller, accepting a short resize step during promotion. Cross-region replication traffic stayed below INR 15,000 per month.
Return on investment
Indicatively, a single 47-minute outage during a sale cost the gateway about INR 38 lakh in lost merchant discount revenue and penalties. The resilient design adds about INR 3.2 lakh per month, so avoiding one comparable incident a year roughly covers the annual run cost, before counting the reduced regulatory risk.