Mobile Game Backend Stack
Scalable backend for mobile games: leaderboards, matchmaking, real-time multiplayer, IAP, and live-ops without building game server infrastructure from scratch.
The Stack
Nakama
— Open-source game server (leaderboards, matchmaking, chat) optionalSelf-hostable game backend that provides leaderboards, tournaments, matchmaking, social features, and real-time multiplayer via WebSocket — all with a Go/Lua/TypeScript runtime for custom game logic.
Alternatives: playfab, playfab-microsoft, back4app, appwrite
PlayFab
— Managed game backend (LiveOps, economy, analytics) optionalMicrosoft's fully managed game backend handles player data, virtual economy, A/B testing, LiveOps catalog updates, and CloudScript — ideal when you need managed infrastructure rather than self-hosting.
Alternatives: nakama, lootlocker, xano
Photon
— Real-time multiplayer networking optionalLow-latency relay server network with Unity and Unreal SDKs, supporting room-based and lobby multiplayer with automatic region routing and 99.95% SLA.
Alternatives: colyseus, agora, livekit
RevenueCat
— IAP & in-game purchase managementValidates App Store and Google Play receipts server-side, manages entitlement grants for premium currency or unlockable content, and provides subscription analytics.
Alternatives: adapty, glassfy, stripe
GameAnalytics
— Game-specific analytics & telemetryPurpose-built for game metrics: session length, level progression funnels, sink/source economy tracking, and ad impression ROAS — free tier for indie budgets.
Alternatives: amplitude, mixpanel, firebase
Lootlocker
— Player progression, items & achievements optionalCloud-based platform for player XP, inventories, achievements, and leaderboards with a REST API and Unity/Unreal SDKs — removes 80% of custom backend work for progression systems.
Alternatives: playfab-microsoft, nakama
AppsFlyer
— Install attribution & ROAS measurementMeasures cost-per-install and ROAS across Unity Ads, ironSource, and Meta with SKAdNetwork compliance on iOS and Google Privacy Sandbox support on Android.
Alternatives: adjust, singular, kochava
Unity Ads
— In-game ad network (rewarded & interstitial) optionalHighest eCPM for Unity-based games with rewarded video, interstitial, and playable ad formats — integrates directly with the Unity Editor with no external SDK configuration.
Alternatives: ironsource, applovin-max, google-admob
IronSource
— Ad mediation platform optionalMediates multiple ad networks (Unity Ads, AppLovin MAX, Meta, AdColony) to maximise fill rate and eCPM — particularly strong for hyper-casual and casual game genres.
Alternatives: applovin-max, chartboost, inmobi
Sentry
— Crash monitoring & performanceCaptures native iOS and Android crashes plus Unity C# exceptions with full stack traces and breadcrumbs — critical for catching regressions in live-service game updates.
Alternatives: bugsnag, firebase-crashlytics, datadog
Gotchas
- ⚠️ SKAdNetwork's conversion value window is 24–72 hours from install. For games with long first-session onboarding or tutorial gates, most valuable events (first purchase, level 10 completion) happen after the window closes — meaning your ad network ROAS reports will show 0 revenue on SKAdNetwork postbacks. Implement fine-grained conversion value mapping with AppsFlyer or Adjust to compress your most important early-game events into the 64-value window.
- ⚠️ Nakama's matchmaker requires careful tuning of the matchmaking notation (min_count, max_count, query strings). In production, an under-tuned matchmaker will either create 1-player matches (poor experience) or queue players indefinitely (churn). Budget 2–3 weeks for matchmaker tuning with real player data before a soft launch.
- ⚠️ PlayFab's CloudScript runs on Azure Functions with a cold-start penalty of 300ms–2s. For latency-sensitive authoritative game logic (move validation, damage calculation), this is unacceptable. Use Nakama's Lua/Go runtime or a dedicated game server instead for low-latency authoritative logic, and restrict PlayFab CloudScript to async operations like economy grants and leaderboard writes.
Related Stacks
Free Ad-Supported Mobile App Monetization Stack
Toolchain for ad-monetised mobile apps: mediation, waterfall configuration, user-level ROAS measurement, consent management, and in-app event analytics.
iOS Subscription App Stack
Production-ready toolchain for building an iOS app with in-app purchases, subscriptions, crash monitoring, and growth analytics.
Social & Community Mobile App Infrastructure
Production backend for consumer social apps: real-time chat, feeds, media storage, moderation, push notifications, and growth attribution — without a custom server fleet.