Interview practice question
Daily and all-time leaderboards
System Design · Design: Commerce and Media · Beginner
A game needs daily, weekly and all-time leaderboards. How would you design them?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Separate sorted set per period.
- Keys like lb:daily:2026-11-17.
- Increment all relevant sets on score.
- Expire old daily/weekly sets.
- Persist scores to database.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.