Menu
Back to Discussions

Picking the best data structure for a leaderboard is important.

Renata Schneider
Renata Schneider
·3162 views
hey everyone im working on a gaming platform and need to implement a real time leaderboard weve been expecting millions of users and frequent score updates ive been thinking about using a sorted set data structure like redis sorted sets or zsets for this it seems like a good fit for keeping scores ordered and retrieving top players efficiently has anyone else implemented leaderboards at scale what data structures or approaches did you find most effective and were there any performance gotchas with sorted sets or other solutions
40 comments

Comments

Loading comments...