We built the backend for a real-money card game platform handling 50,000 concurrent users during peak hours. The technical challenges were intense: sub-100ms matchmaking, tamper-proof game state management (players cheat, especially for money), real-time multiplayer synchronization over 3G/4G (India's mobile networks are unpredictable), and instant withdrawal processing (₹50,000+ daily payouts). The platform processes ₹15 crore in monthly transactions with zero game integrity disputes. Gaming backend isn't just servers — it's trust infrastructure. If players don't trust that the game is fair and payouts are real, they leave.
What We'll Cover
Types of Gaming Platforms
| Type | Examples | Key Tech Challenge | MVP Timeline |
|---|---|---|---|
| Real-money gaming (RMG) | Rummy, poker, fantasy sports | Fair play, anti-fraud, payment processing, regulatory compliance | 5-8 months |
| Casual mobile games | Puzzle, word, casual multiplayer | Retention mechanics, ad monetization, leaderboards, social features | 3-5 months |
| Fantasy sports | Cricket, football, kabaddi fantasy | Real-time scoring, contest management, massive concurrent users during live matches | 4-6 months |
| Esports platform | Tournament management, streaming | Bracket management, live streaming integration, prize distribution | 4-6 months |
| Game backend as a service | Matchmaking, leaderboards, analytics | Multi-game support, scale, low latency, developer-friendly APIs | 5-7 months |
Game Backend Architecture
- Matchmaking: Match players by skill level (Elo/Glicko rating), region (minimize latency), and preferences. Sub-3-second match for popular games, queue with estimated wait for niche modes. Handle edge cases: player disconnects during matching, skill-based matchmaking manipulation
- Game state management: Server-authoritative model — the server is the source of truth for all game state. Client sends inputs, server validates and broadcasts results. Never trust the client. For card games: server generates and deals cards using cryptographic randomness (not Math.random())
- Real-time communication: WebSocket for persistent connections. Protocol Buffers or MessagePack (not JSON — 3-5x smaller payload). Tick rate: 10-20 Hz for card/board games, 30-60 Hz for action games. Handle reconnection gracefully — players lose connection frequently on Indian mobile networks
- Leaderboards and rankings: Redis Sorted Sets for real-time leaderboards. Support: global, friends-only, daily/weekly/seasonal. Percentile calculation for large player bases. Anti-cheat: detect and remove bot/multi-account scores
Multiplayer Systems
| Model | How It Works | Best For | Latency Requirement |
|---|---|---|---|
| Turn-based | Players take turns, server validates each move | Chess, rummy, ludo, trivia | Relaxed (500ms+) |
| Lock-step | All clients execute same inputs at same tick | Strategy games, simulations | Moderate (100-200ms) |
| Client-server authoritative | Server processes all inputs, sends state to clients | Most multiplayer games, RMG (trust required) | Tight (50-100ms) |
| Peer-to-peer with relay | Clients communicate directly, server mediates | Casual co-op, low-stakes multiplayer | Variable |
Real-Money Gaming: Where the Revenue Is
Real-money gaming is 60%+ of India's gaming revenue. It's also the most technically demanding category — because real money means real consequences for bugs, cheating, or unfairness.
- Fair play infrastructure: Certified Random Number Generator (RNG) audited by independent testing labs (iTech Labs, GLI, BMM). Server-side card dealing — no client manipulation possible. Game logs with full audit trail — every action, every card dealt, every bet placed, timestamped and immutable
- Anti-fraud systems: Detect collusion (two players sharing hand information), multi-accounting (same person playing multiple accounts at same table), chip dumping (intentionally losing to transfer funds). Use behavioral analytics: unusual betting patterns, win-rate anomalies, IP/device fingerprint correlation
- Wallet and payments: In-game wallet with deposit/withdrawal. UPI for deposits (instant), UPI/bank transfer for withdrawals (process within 24 hours or lose trust). TDS deduction on winnings (30% on net winnings above ₹10,000 per transaction as per Section 194BA). GST on platform fee (28% on the full deposit amount for specified actionable claims)
- KYC and compliance: Aadhaar/PAN verification for withdrawals above threshold. State-wise legal compliance (Andhra Pradesh, Telangana, and some others ban RMG). Geo-fencing: detect and block players from banned states. Age verification: 18+ only
Monetization Models
| Model | Revenue Source | Best For |
|---|---|---|
| Rake / platform fee | Percentage of each pot/entry fee (10-15% typical) | RMG, fantasy sports, poker |
| In-app purchases | Cosmetics, power-ups, battle passes, coins | Casual games, mid-core games |
| Ad-supported (rewarded ads) | Players watch ads for in-game rewards | Casual games, hyper-casual, low LTV users |
| Subscription | Monthly pass for premium content/rewards | Mid-core to hardcore games, esports platforms |
India Gaming Landscape
- Mobile-first: 95% of Indian gamers play on mobile. Android dominates (95%+). Target devices: ₹10,000-20,000 phones with 3-4 GB RAM. Test on Redmi, Realme, Samsung Galaxy M series — not flagship phones. APK size matters: under 100 MB ideally, under 50 MB for hyper-casual
- Regional language: Hindi is the minimum. Tamil, Telugu, Kannada, Bengali, Marathi expand your addressable market by 40-60%. Game UI, tutorials, and customer support in regional languages. Voice chat in multiplayer helps with language barriers
- Regulatory landscape: No central gaming law — each state decides. Skill-based games (rummy, fantasy cricket) are legal in most states. Games of chance (betting) are restricted. Some states (AP, Telangana) ban even skill-based RMG. Self-regulatory bodies: AIGF (All India Gaming Federation). Always consult a gaming lawyer before launching RMG
- 28% GST on online gaming: As of October 2023, 28% GST applies on the full face value of deposits for online money gaming. This significantly impacts unit economics — your platform fee must account for this. Display GST transparently to players
- Cricket is king: Fantasy cricket drives massive engagement during IPL (60 days), World Cup, and bilateral series. Plan your server capacity around the cricket calendar — IPL evenings see 10-20x normal traffic. Off-season: diversify to football, kabaddi, or non-sports games
Frequently Asked Questions
How much does it cost to build a gaming platform?
Casual mobile game: ₹15-40 lakh (3-5 months). Real-money gaming platform (rummy/poker): ₹50-90 lakh (5-8 months). Fantasy sports platform: ₹40-70 lakh (4-6 months). Esports tournament platform: ₹30-50 lakh (4-6 months). RNG certification and legal compliance add ₹10-20 lakh for RMG platforms. Server costs scale dramatically during peak events — budget ₹5-20 lakh/month for infrastructure.
Is real-money gaming legal in India?
Skill-based games (rummy, poker, fantasy sports) are legal in most states under the "game of skill" exemption. However, Andhra Pradesh, Telangana, Assam, Odisha, Nagaland, and Sikkim have restrictions or bans. The legal status changes frequently — always geo-fence banned states and consult gaming lawyers. Pure games of chance (betting, slots) are illegal in most of India.
How do I handle the 28% GST on gaming deposits?
28% GST is charged on the full face value of deposits (not just platform fee). For a ₹100 deposit, ₹28 goes to GST and ₹72 enters the player's wallet. This reduces effective prize pools and impacts player experience. Most platforms absorb part of the GST to remain competitive. Display GST clearly in the deposit flow — transparency builds trust. Factor GST into your unit economics from day one.