India’s Leading Domain & Web Hosting Provider

  • Chat
    Live Chat 24 X 7 online support
  • Contact NTSPL Hosting support
    Call Now +91 - 8260003333
Google CloudEducation software (school ERP vendor)Education

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

Amazon Web Services
01

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
02

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.

Git history + MySQL general logs → Deptrac / PhpMetrics dependency graph → CRUD matrix and tenant audit → seam scorecard → fee service on Cloud Run with Pub/Sub events → backlog
DeptracPhpMetricsCloud TraceCloud RunCloud SQL for MySQLPub/Sub
03

Implementation approach

Week 1 · Access and baselineBuilt the application locally and agreed admission-season stability and tenant isolation as success criteria.
Weeks 2-3 · Static and log analysisMapped module dependencies with Deptrac and built the table matrix from a week of MySQL logs.
Week 4 · Tenant audit and seam scoringAudited every query for tenant filters and scored 12 modules.
Week 5 · Backlog and isolation planDelivered a sequenced backlog and a tenant-isolation plan for premium customers.
04

Measured results

Modules with a decided target pattern
0 of 12→12 of 12
Queries missing tenant filters
37, previously unknown→0
Planned fee-module release frequency
Once a fortnight with the monolith→Daily and independent
Fee capacity at admission peak
95% CPU on shared VMs→Cloud Run design sized for 6x March load

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
05

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.

06

Return on investment

ROI indicator

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.

Illustrative scenario: a composite based on typical NTSPL engagement patterns for this industry and service. It does not describe a named customer. The figures are indicative, and actual results depend on the workload, its scale and the commercial terms.