A leaderboard looks like a one-command problem:
ZADD weekly 100 alice
ZADD weekly 100 bob
ZREVRANGE weekly 0 -1 WITHSCORES
Enter fullscreen mode
Redis sorted sets make leaderboards easy, until two players have the same score. Here is how we made ties fair, deterministic, and atomic.
A leaderboard looks like a one-command problem:
ZADD weekly 100 alice
ZADD weekly 100 bob
ZREVRANGE weekly 0 -1 WITHSCORES
Enter fullscreen mode

Hash tags make atomic leaderboard updates work in Redis Cluster, but they do not split one leaderboard across nodes. Here is the…

We replaced Redis's arbitrary equal-score ordering with first-arrival wins, then measured the latency and memory bill instead of…

If you learn one Redis structure deeply, make it the sorted set. It's a set where every member...

This is a submission for DEV's Summer Bug Smash: Clear the Lineup powered by Sentry. ...

The Problem We Were Actually Solving We ran an in-memory leaderboard service for a competitive event...

For two years, our Sponsored Placements service booked limited ad inventory through Redis: a counter...