India’s Leading Domain & Web Hosting Provider
Loyalty fintech handles festive redemption peaks on Cloud SQL with Memorystore
Coalition loyalty and rewards platform with a prepaid wallet, 11 million members · Pan-India · 5 weeks
As-is situation
The platform ran MySQL 5.7 on two large VMs at a domestic hosting provider, with a manually managed replica that had silently stopped replicating twice in a year. Points accrual from 140 partner brands arrived in hourly batch files, while members checked balances and redeemed in the app. During Diwali and major e-commerce sale weeks, balance-check traffic rose eightfold and pushed the primary above 90% CPU, causing redemption timeouts. MySQL 5.7 had reached end of life, backups were nightly mysqldump files, and the auditors flagged the 24-hour RPO against the company's RBI prepaid payment instrument obligations.
- Primary CPU above 90% during festive weeks, with 3.1% of redemptions timing out
- Unsupported MySQL 5.7 with no tested upgrade path
- Nightly dump backups giving an effective RPO of 24 hours
- Wallet transaction data required to be stored only in India
Selected Google Cloud services and architecture
NTSPL migrated the database to Cloud SQL for MySQL 8.4 on Enterprise Plus edition in asia-south1 using Database Migration Service, with regional HA, the data cache enabled and point-in-time recovery. Balance and tier lookups now hit Memorystore for Valkey first with a 60-second TTL, and every redemption invalidates the member's key after the database commit. A cross-region replica in asia-south2 supports recovery, and two read replicas serve partner statements and analytics extracts. Managed Connection Pooling protects the primary from Cloud Run's bursty connection patterns during sale-hour spikes, keeping active connections below 400.
Implementation approach
Measured results
Operational improvements
- Festive weeks no longer require a pre-booked emergency server upgrade
- Restores to any point in time are self-service for the platform team instead of a dump replay
- Partner statement extracts run on replicas, so finance no longer waits for night windows
Cost considerations
Enterprise Plus edition costs more per vCPU than Enterprise, but the data cache and Memorystore let the primary run on half the vCPUs the old VM needed. Read replicas use Enterprise edition shapes. A one-year committed use discount covers the primary; the cross-region replica runs smaller and is resized only during a failover.
Return on investment
Recovered redemptions during festive weeks protect partner fee income estimated at INR 40-60 lakh a year, and the move avoided a planned INR 25 lakh hardware upgrade. Clearing the auditors' RPO observation also removed a gating item for two new co-branded wallet partnerships.