RankUp is building a leaderboard-as-a-service for mobile game developers. Features:
- Submit scores - game clients submit scores via API. A player's leaderboard entry shows their best score.•Global leaderboard - fetch the top-100 players sorted by score, with rank, name, and avatar.•Player rank - given a player ID, return their current rank and score in O(log N) time.•Friends leaderboard - show rankings among a player's friends only.•Time-based boards - daily, weekly, and all-time leaderboards that reset on schedule.•Multiple games - serve leaderboards for hundreds of different games from one service.
Targeting 500 games with 200,000 total players and 2 million score submissions per day.
Design a real-time gaming leaderboard showing top players, rank lookups, and score history. Build this architecture under realistic production constraints, then validate tradeoffs in the design lab simulation.
Request path: The solution keeps ingress, service logic, and stateful dependencies separated so each layer can scale independently.
Reference flow: Web Clients -> API Gateway -> API Service -> Primary SQL DB -> Redis Cache