India’s Leading Domain & Web Hosting Provider
School ERP vendor picks its first three extractions from a PHP monolith for 1,900 schools
SaaS vendor serving 1,900 private and CBSE-affiliated schools, 14-person engineering team · Google Cloud Mumbai · 5 weeks
As-is situation
The vendor served all schools from one multi-tenant PHP 7.2 CodeIgniter application of about 420,000 lines on Compute Engine VMs, with a single MySQL 5.7 database holding 7 lakh student records. Fees, attendance, timetable, exams and the parent app shared one codebase and one release. Admission season in March and April pushed CPU to 95% and caused fee-payment outages of up to 40 minutes twice in 2025. Large school chains wanted SSO and stronger tenant isolation, which the shared schema could not offer.
- Fee-payment outages of up to 40 minutes during admission peaks
- PHP 7.2 and MySQL 5.7 both past end of life, blocking security certifications sought by school chains
- Every module change triggered a full release, limiting the team to one deployment a fortnight
Approach, tools and architecture
NTSPL ran a five-week assessment with the vendor's engineers. Git mining showed fees, exams and parent notifications accounted for 71% of commits and 80% of Sev-1 tickets. Schema analysis found fee collection touched only 23 of 310 tables, making it the cleanest seam. Target: fees as a PHP 8.3 service on Cloud Run with its own Cloud SQL for MySQL 8.0 database, publishing payment events to the monolith over Pub/Sub; notifications next as Cloud Run functions; exams only after a data split. A tenant audit found 37 queries missing tenant filters, all fixed during the assessment.
Implementation approach
Measured results
Operational improvements
- Deptrac layer rules now run in CI and fail builds that add new cross-module calls
- Tenant-filter checks are a static rule and a code-review checklist item
Cost considerations
The assessment fee was INR 9 lakh. The projected Google Cloud run cost for the fee service is about INR 38,000 a month at peak, offset by retiring two of the six monolith VMs once fee traffic moves.
Return on investment
Avoiding one admission-season outage protects an estimated INR 60 lakh in annual renewals from the three largest school chains. Fixing the tenant filters removed a data-exposure risk that could have triggered a personal data breach notification under the DPDP Act 2023.