India’s Leading Domain & Web Hosting Provider
Casual gaming studio keeps 6 lakh concurrent players online through a regional drain
Mobile game studio with three titles, 2.3 crore installs, peak 6 lakh concurrent players · Google Cloud Mumbai and Delhi · 4 months
As-is situation
The studio's backend handled login, player profiles, inventory of cosmetic items, leaderboards and match-making on GKE in Mumbai, with player data in a single Cloud SQL for PostgreSQL instance and Memorystore for leaderboards. DR was a daily export to Delhi. A 40-minute Mumbai networking incident during a Diwali in-game event dropped all sessions; players lost event progress, refund requests for in-app purchases jumped, and the weekly active player count fell 9% the following week. Live-ops wanted events to survive the loss of a region without player-visible disruption beyond a reconnect.
- Single Cloud SQL instance held profiles and inventory, writing at 14,000 transactions per second at peak
- Event progress was saved every 10 minutes, so a crash lost up to 10 minutes of play
- Match-making was stateful in Mumbai pods with no way to resume elsewhere
Approach, tools and architecture
NTSPL moved player profiles, event progress and cosmetic inventory to Bigtable with clusters in Mumbai and Delhi and multi-cluster routing, modelling inventory as one row per item grant so concurrent writes never collided. Purchases kept a single-writer Cloud SQL ledger fed asynchronously, with idempotent grant keys from the store receipt. Event progress was checkpointed every 30 seconds. GKE clusters in both regions sat behind a global external Application Load Balancer, with match-making made regional and stateless across sessions so players reconnecting in Delhi joined new matches. Leaderboards were rebuilt per region from Bigtable and merged every minute.
Implementation approach
Measured results
Operational improvements
- Live-ops can drain a region before planned maintenance instead of scheduling downtime
- Leaderboard merges are observable, and the reconciler reports inventory divergence daily
Cost considerations
Two Bigtable clusters and a second GKE cluster added about INR 18 lakh a month, roughly 75% above the old single-region backend. Moving profiles off a large Cloud SQL instance saved about INR 4 lakh a month, bringing net uplift to about INR 14 lakh.
Return on investment
A repeat of the Diwali incident had cost an estimated INR 1.3 crore in refunds and lost purchases plus a 9% weekly active player drop. Net annual uplift of about INR 1.7 crore is justified if active-active prevents one such event a year, and live-ops also gained zero-downtime maintenance.