India’s Leading Domain & Web Hosting Provider
Live-scoring app scales 25x for match days with zero pending pods at toss
Live-scoring, fantasy-stats and commentary app, 9 million monthly active users · India with diaspora users in the UK, UAE and Australia · 7 weeks
As-is situation
The scoring backend ran on a GKE Standard cluster with two node pools sized for big tournaments. Between matches, traffic was about 2,000 requests per second; at the toss of a high-profile match it jumped to 50,000 within four minutes. The cluster autoscaler took three to five minutes to add nodes, so pods sat pending and push notifications for the first wickets arrived late. To compensate, the team kept 60 nodes running permanently, paying for idle capacity on non-match days. WebSocket connections for live commentary dropped during node scale-down, causing visible reconnect storms.
- Three to five minutes of pending pods at match start despite overprovisioning
- Sixty permanently running nodes at around 15% utilization on non-match days
- WebSocket disconnects for up to 400,000 users during node scale-down
- Push notification delay of up to 90 seconds on key match events
Selected Google Cloud services and architecture
NTSPL moved the stateless API and WebSocket gateway tiers to a regional GKE Autopilot cluster in asia-south1, with diaspora traffic served through the same global Gateway. A match-schedule controller raises HPA minimums 45 minutes before toss using the fixtures feed, and HPA scales further on active connections per pod from Managed Service for Prometheus. PodDisruptionBudgets and a 30-minute termination grace period with connection draining stop WebSocket drops during scale-down. Score ingestion workers run as Spot Pods with a standard-pod fallback. Gateway API weighted routes allow new scoring logic to be canaried at 5% on low-stakes matches first.
Implementation approach
Measured results
Operational improvements
- Match-day scaling no longer needs an engineer adjusting node pools before toss
- New scoring features are canaried on low-stakes fixtures through Gateway API weights
- Non-match days run at baseline size automatically, without anyone remembering to scale down
Cost considerations
Pre-scaling 45 minutes early adds a small, deliberate cost per match in exchange for zero pending pods. Spot Pods cut ingestion cost by over 60%, with a standard fallback to protect live scores. No committed use discount was bought for match-day capacity; only the low non-match baseline is committed.
Return on investment
Removing permanently idle nodes saves an indicative INR 75-85 lakh a year, while reliable match-start performance improved session length and ad impressions; the business estimates an additional INR 1-1.4 crore in annual ad and subscription revenue during tournaments, against a one-time migration cost of about INR 18 lakh.