Design a Multiplayer Game Leaderboard
easy 45 minKeep 250 million players in order while results arrive all the time, and tell any of them their place in milliseconds.
What each level should show
The same question is judged differently for mid, senior and staff.
Mid
Must show
- Sorted set and its three commands
- Database as owner
- Cached top list
- Weekly keys
Will be probed on
- Why SQL counts are slow
- Ties
- Friends board
Stands out
Separates shared reads from personal reads without being asked.
Senior
Must show
- Durable results before boards
- Repeat-safe updates
- Trusted source
- Sizes from commands and memory
Will be probed on
- Losing a primary
- Packing limits
- Why not push
Stands out
Checks the packed score against 2 to the power 53.
Staff
Must show
- Where exactness is worth paying for
- Splitting one ordered set
- Rebuild time
- Freeze and prizes
Will be probed on
- Band error
- Rebalancing ranges
- Cheating economics
Stands out
Asks what decision a player makes with place 40 million.