SlideShare a Scribd company logo
Creating Gaming Leaderboards
Using Redis
Ronny López
Technical Lead Backend
Ronny.lopez@socialpoint.es
Leaderboards
• Effective way to show where a user stands within a gamified
system
• Absolute leaderboards – incentivize
• Relative leaderboards – avoid disengagement of players at
lower end of rankings
• Several type of rankings (weekly, monthly, friends, …)

2
3
4
5
Requirements
•
•
•
•
•
•
•

Add member
Remove member
Update member score
Find member score
Find member rank
Associate data to members (Name, Alliance, etc…)
Get slices of the ranking (for pagination)
6
Architecture
 Scalable to serve several million active users
 Performance is a must

7
Implementation
•
•
•
•
•
•

Redis data structure server
Sorted set data structure
Different sorted sets for different kinds of rankings
Redis hash data structure for member associated data
Lua scripting for aggregating in-memory data
(Sorted) Sets operations (union, intersection, etc…)

8
Challenges
• Horizontal scaling
• It is not possible to shard a dataset with a single huge key like a
very big sorted set
• Two-phase commits if you want to execute a transaction
among different data stores

9
Summary
• Redis is the right tool for the job, but datasets can not be bigger
than memory
• Exceptional performance (more than 8K leaderboard ops per
second in a single instance)
• Easy to use and understand technology
• Mature and open source

10

More Related Content

What's hot (20)

PDF
MongoDB Administration 101
MongoDB
 
PPTX
Netezza online training at GoLogica
GoLogica Technologies
 
PPTX
SQL vs. NoSQL. It's always a hard choice.
Denis Reznik
 
PDF
An Introduction to Druid
RedBlackTree
 
PPTX
Koha System Architecture
Andreas Hedström Mace
 
PDF
CosmosDb for beginners
Phil Pursglove
 
PPTX
Introduction to Total Library Solution- TLS
Ata Rehman
 
PPTX
Build an Intelligent Bot
Sorin Peste
 
PPTX
Nashville analytics summit aug9 no sql mike king dell v1.5
Mike King
 
PDF
RedisDay London 2018 - Redis & BioCatch Catching the Bad Guys in Action with ...
Redis Labs
 
PPTX
Azure CosmosDB
Fernando Mejía
 
PPTX
Aruman Cassandra database
Umesh Dande
 
PDF
Writing Space and the Cassandra NoSQL DBMS
DataStax Academy
 
PPTX
Maria DBMS
Ramez Al-Fayez
 
PDF
SQL vs NoSQL: Big Data Adoption & Success in the Enterprise
Anita Luthra
 
PDF
Dolphins Now And Beyond - FOSDEM 2010
Ronald Bradford
 
PDF
Lessons from {distributed,remote,virtual} communities and companies
Colin Charles
 
PDF
Directories for the REST of Us: REST to LDAP in OpenDJ 2.6
ForgeRock
 
PDF
Sql server 2017_editions_datasheet
Criss Crasch
 
PPTX
MS DevDay - SQLServer 2014 for Developers
Денис Резник
 
MongoDB Administration 101
MongoDB
 
Netezza online training at GoLogica
GoLogica Technologies
 
SQL vs. NoSQL. It's always a hard choice.
Denis Reznik
 
An Introduction to Druid
RedBlackTree
 
Koha System Architecture
Andreas Hedström Mace
 
CosmosDb for beginners
Phil Pursglove
 
Introduction to Total Library Solution- TLS
Ata Rehman
 
Build an Intelligent Bot
Sorin Peste
 
Nashville analytics summit aug9 no sql mike king dell v1.5
Mike King
 
RedisDay London 2018 - Redis & BioCatch Catching the Bad Guys in Action with ...
Redis Labs
 
Azure CosmosDB
Fernando Mejía
 
Aruman Cassandra database
Umesh Dande
 
Writing Space and the Cassandra NoSQL DBMS
DataStax Academy
 
Maria DBMS
Ramez Al-Fayez
 
SQL vs NoSQL: Big Data Adoption & Success in the Enterprise
Anita Luthra
 
Dolphins Now And Beyond - FOSDEM 2010
Ronald Bradford
 
Lessons from {distributed,remote,virtual} communities and companies
Colin Charles
 
Directories for the REST of Us: REST to LDAP in OpenDJ 2.6
ForgeRock
 
Sql server 2017_editions_datasheet
Criss Crasch
 
MS DevDay - SQLServer 2014 for Developers
Денис Резник
 

Similar to Creating Game Leaderboards with Redis (20)

PPTX
Redis Functions, Data Structures for Web Scale Apps
Dave Nielsen
 
KEY
Are you REDIS?
Emanuele Tozzato
 
PDF
Mini-Training: Redis
Betclic Everest Group Tech Team
 
PPTX
Redis: Swiss Army Knife @HackerRank: Kamal Joshi
Redis Labs
 
PPT
Introduction to redis
Tanu Siwag
 
PDF
Redis Installation Configuration And Implementation
Abhijeet Shekhar
 
PPTX
10 Ways to Scale with Redis - LA Redis Meetup 2019
Dave Nielsen
 
PPTX
10 Ways to Scale Your Website Silicon Valley Code Camp 2019
Dave Nielsen
 
PDF
Redis - The Universal NoSQL Tool
Eberhard Wolff
 
KEY
Redis in Practice
Noah Davis
 
PDF
Redis basics
Arthur Shvetsov
 
PPTX
Using Redis and RediSearch module to store and search volatile data
Dmitry Polyakovsky
 
PDF
Steam Learn: An introduction to Redis
inovia
 
PPTX
Redis data structure and Performance Optimization
Knoldus Inc.
 
PDF
Redispresentation apac2012
Ankur Gupta
 
PPTX
Azure Redis Cache - Cache on Steroids!
François Boucher
 
PPTX
Redis introduction
Federico Daniel Colombo Gennarelli
 
PPTX
2_Redis.pptx very useful for begginers yes
soufianbouktaib1
 
PDF
Redis — The AK-47 of Post-relational Databases
Karel Minarik
 
PDF
key value dbs , redis , cassandra , their architecture
VrajGaglani
 
Redis Functions, Data Structures for Web Scale Apps
Dave Nielsen
 
Are you REDIS?
Emanuele Tozzato
 
Mini-Training: Redis
Betclic Everest Group Tech Team
 
Redis: Swiss Army Knife @HackerRank: Kamal Joshi
Redis Labs
 
Introduction to redis
Tanu Siwag
 
Redis Installation Configuration And Implementation
Abhijeet Shekhar
 
10 Ways to Scale with Redis - LA Redis Meetup 2019
Dave Nielsen
 
10 Ways to Scale Your Website Silicon Valley Code Camp 2019
Dave Nielsen
 
Redis - The Universal NoSQL Tool
Eberhard Wolff
 
Redis in Practice
Noah Davis
 
Redis basics
Arthur Shvetsov
 
Using Redis and RediSearch module to store and search volatile data
Dmitry Polyakovsky
 
Steam Learn: An introduction to Redis
inovia
 
Redis data structure and Performance Optimization
Knoldus Inc.
 
Redispresentation apac2012
Ankur Gupta
 
Azure Redis Cache - Cache on Steroids!
François Boucher
 
2_Redis.pptx very useful for begginers yes
soufianbouktaib1
 
Redis — The AK-47 of Post-relational Databases
Karel Minarik
 
key value dbs , redis , cassandra , their architecture
VrajGaglani
 
Ad

Recently uploaded (20)

PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PPTX
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
DOCX
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
PDF
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
PPTX
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PPTX
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
PDF
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
Reimaginando la Ciberdefensa: De Copilots a Redes de Agentes
Cristian Garcia G.
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) Slides
Ravi Tamada
 
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
 
01_Approach Cyber- DORA Incident Management.pptx
FinTech Belgium
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
Mastering Authorization: Integrating Authentication and Authorization Data in...
Hitachi, Ltd. OSS Solution Center.
 
“Scaling i.MX Applications Processors’ Native Edge AI with Discrete AI Accele...
Edge AI and Vision Alliance
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
Ad

Creating Game Leaderboards with Redis