PrepCity

Design a real-time leaderboard

Open the lab

By the last page, this is the design you will have built.

Lesson · 12 pages · about 10 min

Design a real-time leaderboard

A game’s top 100 and “where am I” for ten million players: a database that drowns on finale night, a Redis sorted set that keeps the ranking in memory, boards as keys, and top K by counting.

Words you’ll learn

  • Row
  • Requests a second
  • Capacity
  • SQL
  • Request
  • Millisecond
  • Database
  • Read replica (standby)
  • Replica
  • Redis

Page by page