Mobile gaming studio handles 6x tournament match-making spikes on EKS with Spot nodes
Indie-to-mid-size game studio, about 140 employees, 45 lakh monthly active players · India and Southeast Asia · 8 weeks
As-is situation
The game backend, covering login, player profiles, inventory, leaderboards and a custom match-making service, ran on ECS on EC2 with a fixed fleet of 20 instances and a match-making service that held queues in memory on a single task. Weekly tournaments started at 8 pm, and concurrent players jumped from about 60,000 to 3.6 lakh within ten minutes. Match-making times rose from 8 seconds to over 90, the single queue task crashed twice, dropping all waiting players, and app-store reviews mentioning lag spiked after each tournament.
- Concurrent players rising 6x in ten minutes at tournament start
- Match-making queue held in memory on one task, a single point of failure
- Fixed fleet of 20 instances running at about 12% CPU outside tournaments
- Leaderboard writes at peak overloading the relational database
Selected AWS services and architecture
The studio's engineers already used Kubernetes for local development and wanted Agones-compatible tooling for future dedicated game servers, so NTSPL chose Amazon EKS in ap-south-1. The match-making service was rewritten to keep queues and tickets in ElastiCache for Valkey sorted sets, so any replica can form matches and a pod loss drops no players. Horizontal Pod Autoscaler scales match-makers on queue length via KEDA, and Karpenter provisions c7g Spot nodes across several instance families. Ahead of each tournament, a scheduled KEDA trigger pre-scales match-makers and login pods to 60% of the last peak. Leaderboards moved to Valkey sorted sets with periodic snapshots to DynamoDB.
Implementation approach
Measured results
Operational improvements
- Tournament evenings run without engineers manually adding capacity
- Match-making pods can be restarted or rescheduled during play without dropping players
- Leaderboard updates no longer lock the profile database at peak
Cost considerations
Spot Graviton nodes run match-making and leaderboard pods because both now tolerate pod loss; login stays on on-demand nodes. EKS adds a cluster fee that ECS did not have, which the studio accepted for Kubernetes tooling and future game-server support. Valkey nodes are sized to tournament peak and are the main fixed cost.
Return on investment
Indicatively, the studio saves INR 30-40 lakh a year on compute, and retention of tournament players improved, which it values above the infrastructure saving because in-app purchases cluster around tournaments. The platform is ready for dedicated game servers without another migration.