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 technology, live online classesEducation

Live-classes EdTech traces session drops to a signalling bug and cuts them by 73 percent

Live tutoring platform with 2.2 lakh daily class sessions, 410 employees · Pan-India, heavy usage in tier-2 and tier-3 cities · 7 weeks

Amazon Web Services
01

As-is situation

Classes ran on a self-hosted WebRTC media server fleet on GKE in asia-south1, with signalling and classroom state services on Cloud Run and Memorystore for Redis. About 6.5 percent of sessions dropped at least once, mostly between 6 and 9 pm. Support blamed students' mobile networks, while engineering had only media server CPU graphs and unstructured logs at 2.1 TB a day. Each drop generated a refund or free-class request, and tutors on hourly contracts complained about unpaid lost minutes. Nobody could separate client network issues from server-side failures. Exam-season traffic was expected to double within four months.

  • 6.5 percent of sessions dropped, with no split between client and server causes
  • 2.1 TB per day of unstructured logs with no session or trace ID
  • Monthly Cloud Logging bill had tripled in a year
  • Refund and make-up class requests ran at about 9,000 per week
02

Selected Google Cloud services and architecture

NTSPL added a session ID and trace context to every signalling call and media server log, switched services to structured JSON logs, and instrumented the client SDKs to send reconnect and ICE failure events as metrics through an ingestion endpoint on Cloud Run. Traces showed that reconnects stalled when the signalling service on Cloud Run scaled to a new instance and lost in-memory room state, because some state bypassed Redis. After the fix, Error Reporting flagged a second regression within hours of a later release. Log Analytics now answers drop-rate questions by city, network type and server in SQL, and exclusion filters removed media server debug logs.

Student apps (OpenTelemetry client events) → Cloud Run signalling with Memorystore room state → WebRTC media servers on GKE → Cloud Trace and Log Analytics → session-completion SLO alerts
Cloud TraceCloud Logging Log AnalyticsError ReportingCloud Monitoring SLOsManaged Service for PrometheusCloud Run
03

Implementation approach

Weeks 1-2 · Correlation IDsIntroduced session and trace IDs across client SDK, signalling and media servers, plus structured logging.
Weeks 3-4 · Client metrics and tracingAdded client reconnect metrics and traced signalling flows, isolating the room-state loss on scale-out.
Weeks 5-6 · Fix and log dietMoved all room state into Memorystore, set Cloud Run minimum instances for peak hours and excluded debug logs.
Week 7 · Session SLODefined a session-completion SLO by hour and region with burn-rate alerts during class hours.
04

Measured results

Sessions with at least one drop
6.5 percent→1.75 percent
Daily log ingestion
2.1 TB→0.6 TB
Refund and make-up requests per week
About 9,000→About 2,600
Time to identify root cause of a drop spike
Days, often unresolved→Under 30 minutes

Operational improvements

  • Support agents check a Log Analytics dashboard by session ID to tell a student whether the drop was their network or the platform
  • Releases are watched for new Error Reporting groups during the first evening class peak
  • Cloud Run minimum instances are raised automatically before 6 pm through a scheduled job
05

Cost considerations

Cutting log ingestion by about 70 percent was the main saving; debug logs from media servers are sampled at 1 percent rather than dropped entirely so rare failures remain visible. Raising Cloud Run minimum instances during peak hours added a modest cost that the team accepted to keep room state warm.

06

Return on investment

ROI indicator

Fewer make-up classes and refunds saved an indicative INR 60 to 75 lakh per quarter in tutor payouts and credits. Log ingestion savings of about INR 6 lakh per month more than covered the engineering effort within the first quarter.

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.