India’s Leading Domain & Web Hosting Provider
Microfinance lender reverses a faulty EMI batch and keeps 9 hours of collections
NBFC-MFI with 11 lakh borrowers, 640 branches, loan management system on AlloyDB · Google Cloud Mumbai · 1 day recovery, 5 weeks redesign
As-is situation
The lender's loan management system on GKE used AlloyDB for PostgreSQL holding loan accounts, repayment schedules and collections, about 1.8 TB. Field officers posted group collections from a mobile app through the day, about 2.6 lakh receipts on a peak day. Continuous backup retention was the 14-day default and nobody had performed a point-in-time restore. A vendor patch to the EMI allocation routine went live on a Monday at 7 a.m. and misallocated principal and interest on 3.4 lakh instalments. The error was noticed at 4 p.m. when branch managers saw wrong overdue counts.
- Nine hours of legitimate collections had been posted after the faulty patch and could not be lost
- No tested procedure for restoring a 1.8 TB cluster to a point in time
- Borrower SMS confirmations had already gone out for some misallocated receipts
Approach, tools and architecture
NTSPL led the recovery and then the redesign. AlloyDB was restored to a new cluster at 06:58, two minutes before the patch, while production stayed online with collections paused only for the final merge. Reconciliation scripts compared instalment allocations in the restored and live clusters by loan ID and receipt ID, recomputed allocations for the 3.4 lakh affected instalments using the corrected routine, and merged them in a 40-minute window. Afterwards, continuous backup retention was raised to 35 days, monthly on-demand backups were kept 13 months, and a monthly automated side-by-side restore with amcheck and a portfolio-balance query was introduced.
Implementation approach
Measured results
Operational improvements
- Vendor patches now require a recorded restore point and a rollback owner in the change ticket
- The CRO receives a monthly restore and integrity report as part of operational risk reporting
Cost considerations
Extending continuous backup to 35 days and keeping 13 monthly backups increased backup storage cost by about INR 46,000 a month. The monthly restore test cluster runs for about four hours and costs roughly INR 6,000 per run.
Return on investment
A full rollback would have discarded 2.1 lakh receipts and forced manual re-entry across 640 branches, estimated at 5,000 staff-hours, plus customer disputes. The same-day recovery and new design cost less than a single month of that disruption.