PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/System Design/Meta

Design an Online Game Leaderboard

Last updated: Jun 15, 2026

Quick Overview

A Meta software-engineer system-design screen: design the backend for an online game leaderboard supporting score recording, a global top-N board, a friends board, a player's rank and nearby players, and daily/weekly/seasonal/all-time windows at high write volume and low read latency. The model answer separates a durable score event log from an in-memory sorted ranking store, computes the friends board on read, and covers tie-breaking, caching, sharding, consistency trade-offs, anti-cheat, and rebuilds.

  • hard
  • Meta
  • System Design
  • Software Engineer

Design an Online Game Leaderboard

Company: Meta

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

##### Question Design the backend system for an online game's leaderboard. The system should support: 1. **Recording and updating player scores** from game sessions, with high write volume from many concurrent players. 2. **A global leaderboard** showing the top N players by score (for example, the top 10 or top 100). 3. **A friends leaderboard** showing the top players among a given user's friends. 4. **A player's own rank** plus the nearby players around that rank (an "around me" view). 5. **Multiple leaderboard windows** such as daily, weekly, seasonal, and all-time rankings. 6. **Low-latency reads** for leaderboard pages even at very large scale. Walk through the functional and non-functional requirements, the API design, the data model, storage choices, the ranking strategy (including tie-breaking), caching, the scaling approach, consistency trade-offs, anti-cheat/validation, and operational concerns. Explain how you keep the global, friends, windowed, and rank/nearby queries efficient when the player base and write volume are large.

Quick Answer: A Meta software-engineer system-design screen: design the backend for an online game leaderboard supporting score recording, a global top-N board, a friends board, a player's rank and nearby players, and daily/weekly/seasonal/all-time windows at high write volume and low read latency. The model answer separates a durable score event log from an in-memory sorted ranking store, computes the friends board on read, and covers tie-breaking, caching, sharding, consistency trade-offs, anti-cheat, and rebuilds.

Related Interview Questions

  • Design Top-K, Crawler, and Chess Systems - Meta (hard)
  • Design Search And Web Crawling Systems - Meta (medium)
  • Design an Instagram-Style Social Feed - Meta (medium)
  • Design an On-Demand Delivery Platform - Meta (medium)
  • Design Queue And Taxi Matching Services - Meta (medium)
Meta logo
Meta
Apr 27, 2026, 12:00 AM
Software Engineer
Technical Screen
System Design
11
0
Question

Design the backend system for an online game's leaderboard.

The system should support:

  1. Recording and updating player scores from game sessions, with high write volume from many concurrent players.
  2. A global leaderboard showing the top N players by score (for example, the top 10 or top 100).
  3. A friends leaderboard showing the top players among a given user's friends.
  4. A player's own rank plus the nearby players around that rank (an "around me" view).
  5. Multiple leaderboard windows such as daily, weekly, seasonal, and all-time rankings.
  6. Low-latency reads for leaderboard pages even at very large scale.

Walk through the functional and non-functional requirements, the API design, the data model, storage choices, the ranking strategy (including tie-breaking), caching, the scaling approach, consistency trade-offs, anti-cheat/validation, and operational concerns. Explain how you keep the global, friends, windowed, and rank/nearby queries efficient when the player base and write volume are large.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More Meta•More Software Engineer•Meta Software Engineer•Meta System Design•Software Engineer System Design
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.