Tag

leaderboard

1 views collected around this technical thread.

macrozheng
macrozheng
May 12, 2025 · Backend Development

Designing a Billion‑User Real‑Time Leaderboard: Redis vs MySQL

This article explores how to build a scalable, high‑performance leaderboard for hundreds of millions of users by comparing traditional database ORDER BY approaches with Redis sorted sets, addressing challenges such as hot keys, memory pressure, persistence risks, and presenting a divide‑and‑conquer implementation strategy.

RankingRedisbig-data
0 likes · 11 min read
Designing a Billion‑User Real‑Time Leaderboard: Redis vs MySQL
Cognitive Technology Team
Cognitive Technology Team
Mar 26, 2025 · Game Development

Designing Scalable Game Leaderboards with Redis: Core Requirements, Data Structures, and Architecture

This article analyzes the essential requirements of massive‑scale game leaderboards, explains how Redis sorted sets and hash tables provide fast ranking and lookup, and presents a multi‑layered architecture—including hot‑key sharding, dynamic partitioning, tiered storage, read/write separation, pipeline batching, and hybrid persistence—to achieve real‑time, billion‑user performance.

Data ShardingPersistenceRedis
0 likes · 5 min read
Designing Scalable Game Leaderboards with Redis: Core Requirements, Data Structures, and Architecture
macrozheng
macrozheng
Feb 25, 2025 · Databases

Master Redis: 16 Real-World Patterns for Caching, Locks, and More

This guide explores 16 practical Redis use cases—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tags, filtering, follow models, and ranking—providing code snippets and implementation tips for each pattern.

BitmapsDistributed LockMessage Queue
0 likes · 9 min read
Master Redis: 16 Real-World Patterns for Caching, Locks, and More
Lobster Programming
Lobster Programming
Nov 15, 2024 · Databases

How to Build a High‑Concurrency Leaderboard with Redis Zset and Sharding

This article explains how to design a scalable leaderboard using Redis Zset for moderate traffic and a sharded‑key plus local cache architecture for ultra‑high concurrency, detailing synchronization strategies, data flow, and practical implementation steps.

CacheRedisSharding
0 likes · 5 min read
How to Build a High‑Concurrency Leaderboard with Redis Zset and Sharding
macrozheng
macrozheng
Feb 20, 2024 · Databases

10 Real-World Redis Use Cases Every Backend Engineer Should Know

Discover ten practical Redis scenarios—from counting page visits and caching category trees to implementing distributed locks, leaderboards, rate limiting, bitmap analytics, message queues, and global ID generation—each illustrated with concise code snippets and best‑practice tips for robust backend development.

BitmapDistributed LockGlobal ID
0 likes · 11 min read
10 Real-World Redis Use Cases Every Backend Engineer Should Know
Java Architect Essentials
Java Architect Essentials
Feb 18, 2024 · Databases

Common Redis Use Cases and Implementation Patterns

This article presents sixteen practical Redis use cases—including caching, distributed locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow relationships, and leaderboards—each explained with data types, commands, and code examples.

DataStructuresDistributedLockRateLimiting
0 likes · 8 min read
Common Redis Use Cases and Implementation Patterns
Sohu Tech Products
Sohu Tech Products
Jul 26, 2023 · Databases

Understanding Redis Sorted Set Implementation and Real‑World Leaderboard Use Cases

This article explains the Redis Sorted Set data type, its underlying storage mechanisms (listpack and skiplist + dict), the internal structures and algorithms, and demonstrates how to build a real‑time game leaderboard using ZADD, ZRANGE and ZREVRANK commands.

Data StructureListpackRedis
0 likes · 14 min read
Understanding Redis Sorted Set Implementation and Real‑World Leaderboard Use Cases
Selected Java Interview Questions
Selected Java Interview Questions
Mar 14, 2023 · Databases

16 Common Redis Use Cases and How to Implement Them

This article outlines sixteen practical Redis usage scenarios—including caching, distributed sessions, locks, ID generation, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, tags, filtering, follow relationships, and leaderboards—explaining each concept and providing example code snippets for implementation.

BitmapsCacheDistributed Lock
0 likes · 9 min read
16 Common Redis Use Cases and How to Implement Them
Top Architect
Top Architect
Mar 2, 2023 · Databases

16 Common Redis Application Scenarios with Code Samples

This article presents sixteen practical Redis use‑cases—including caching, distributed locks, global IDs, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, product tagging, filtering, follow/recommendation models and leaderboards—each explained with concise descriptions and ready‑to‑run code snippets.

Distributed LockGlobal IDRate Limiting
0 likes · 9 min read
16 Common Redis Application Scenarios with Code Samples
Sohu Tech Products
Sohu Tech Products
Sep 22, 2021 · Databases

Common Redis Use Cases and Implementation Patterns

This article introduces a collection of practical Redis use cases—including caching, distributed sessions, locks, global IDs, counters, rate limiting, bitmaps, shopping carts, timelines, message queues, lotteries, likes, tags, product filtering, follow relationships, and ranking—explaining their data types, commands, and sample code.

BitmapsDistributed LockMessage Queue
0 likes · 8 min read
Common Redis Use Cases and Implementation Patterns
Architecture Digest
Architecture Digest
Aug 12, 2021 · Backend Development

Implementing Real-Time Leaderboards with Redis in PHP

This article explains how to design and implement a real-time ranking system for a mobile tank game using Redis sorted sets, covering leaderboard categories, composite scoring formulas, dynamic updates, data retrieval with pipelines, and provides a complete PHP class example.

Composite ScorePHPRedis
0 likes · 10 min read
Implementing Real-Time Leaderboards with Redis in PHP
58 Tech
58 Tech
Aug 5, 2021 · Artificial Intelligence

58 City AI Algorithm Competition – Updates, Leaderboard, and Baseline Model

The 58 City AI Algorithm Competition, now in its second edition, has attracted over 200 teams from more than 50 universities and 30 internal groups, with daily leaderboard updates, a baseline MMoE model scoring 0.7294, and a GitHub repository for participants.

58 CityAI competitionMMoE
0 likes · 5 min read
58 City AI Algorithm Competition – Updates, Leaderboard, and Baseline Model
IT Xianyu
IT Xianyu
Jul 19, 2021 · Backend Development

Implementing a Real‑Time Leaderboard with Redis and PHP

This article explains how to build a real‑time game leaderboard using Redis sorted sets, covering ranking categories, composite scoring formulas, dynamic updates, efficient data retrieval with pipelines, and provides a complete PHP class implementation.

PHPRedisSortedSet
0 likes · 11 min read
Implementing a Real‑Time Leaderboard with Redis and PHP
Architecture Digest
Architecture Digest
Jun 13, 2021 · Backend Development

Implementing a Real-Time Leaderboard with Redis for a Mobile Game

This article explains how to build a real‑time, dual‑dimension leaderboard for a mobile tank game using Redis Sorted Sets, covering ranking types, composite score calculations, dynamic updates, efficient data retrieval with pipelines, and a complete PHP implementation.

PHPRedisleaderboard
0 likes · 8 min read
Implementing a Real-Time Leaderboard with Redis for a Mobile Game
macrozheng
macrozheng
Mar 11, 2021 · Backend Development

How to Design Scalable Leaderboards with MySQL and Redis: Interview Tips

This article walks through designing a ranking system for interview scenarios, comparing MySQL and Redis implementations, covering sorted‑set operations, handling daily, weekly, and multi‑day leaderboards, scaling to billions of users, and addressing practical considerations beyond pure API usage.

InterviewMySQLRedis
0 likes · 19 min read
How to Design Scalable Leaderboards with MySQL and Redis: Interview Tips
Selected Java Interview Questions
Selected Java Interview Questions
Jan 29, 2021 · Databases

Redis Basics: In-Memory Database Concepts, Data Structures, and Common Use Cases

This article introduces Redis as an in‑memory key‑value database, explains its five core data structures, and outlines typical scenarios such as caching hot data, counters, queues, bit‑maps for massive datasets, latest‑list feeds, and leaderboards, providing practical guidance for developers.

BitmapsData StructuresIn-Memory Database
0 likes · 8 min read
Redis Basics: In-Memory Database Concepts, Data Structures, and Common Use Cases
Tencent Cloud Developer
Tencent Cloud Developer
Mar 11, 2019 · Game Development

Solving Mini‑Game Server Dependency with Cloud Development: A Case Study of "LeXiang Garden"

By adopting Tencent Cloud Serverless functions, the developers of the mini‑game “LeXiang Garden” eliminated the need for a dedicated backend, directly accessed WeChat authentication, stored tokens, and implemented global leaderboards with just two cloud functions, dramatically lowering the barrier to mini‑game creation.

Cloud FunctionsWeChatcloud development
0 likes · 8 min read
Solving Mini‑Game Server Dependency with Cloud Development: A Case Study of "LeXiang Garden"