InterviewLegend

Design a Game Leaderboard

Signature problem
Alex Chen45 min readAdded 118 real interview reports

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.

The Reddit angle
This prompt has nothing to do with Reddit's products, and it keeps turning up in Reddit loops anyway. The setup tends to be a small startup asking for an MVP that works. Then the interviewer raises the scale a step at a time and asks what breaks. Expect "what number made you add that?" more than once.

RedditPremium lesson · System design round

The Reddit design, worked end to end.

  1. The API and data modelSystem design · Signature problem
  2. The design, drawn out3 diagrams
  3. 5 deep divesWith the tradeoffs
Get the Reddit questions

$49 a year · all 107 companies · instant access

118 Reddit interview reports · guide updated

Reddit interview guide

Know what Reddit asks before you walk in.

16 coding · 6 system design · 23 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Reddit interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.