Design a Game Leaderboard
Reported versions run something like that. Some frame the company as a startup that sells this backend to game studios. Another asks for a real-time global board that answers top-K queries, meaning the best K scores, for millions of players. Underneath, it's one design: take in scores, keep two records, serve two reads.
A leaderboard looks like a sorted list sitting on a database index, and at small scale that's all it is. The interesting parts come with growth. Most submitted scores change nothing. A launch arrives as a wall of first-match records. Players on flaky connections send the same score twice. And one popular game can outgrow a whole database shard.
RedditPremium lesson · System design round
The Reddit design, worked end to end.
- The API and data modelSystem design · Signature problem
- The design, drawn out3 diagrams
- 5 deep divesWith the tradeoffs
$49 a year · all 107 companies · instant access
118 Reddit interview reports · guide updated
Reddit interview guideKnow what Reddit asks before you walk in.
16 coding · 6 system design · 23 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.