Tag

sorted set

1 views collected around this technical thread.

Top Architect
Top Architect
May 24, 2025 · Databases

Implementing Pagination and Multi‑Condition Fuzzy Search in Redis

This article explains how to use Redis Sorted Sets and Hashes to achieve efficient pagination, fuzzy multi‑condition queries, and their combination, while also discussing performance‑optimisation strategies such as temporary ZSet expiration and data‑freshness handling, before concluding with a brief promotional segment.

BackendDatabaseRedis
0 likes · 12 min read
Implementing Pagination and Multi‑Condition Fuzzy Search in Redis
Java Architect Essentials
Java Architect Essentials
Jan 14, 2025 · Databases

Implementing Online User Counting with Redis Sorted Sets (ZSET)

This article explains how to track online users by storing their identifiers in a Redis sorted set, using expiration timestamps as scores, and demonstrates adding, querying, and cleaning up entries with ZADD, ZRANGEBYSCORE, ZREMRANGEBYSCORE, and ZREM commands in both Java and JavaScript.

JavaJavaScriptOnline Users
0 likes · 7 min read
Implementing Online User Counting with Redis Sorted Sets (ZSET)
Top Architect
Top Architect
Sep 21, 2024 · Databases

Implementing Pagination and Multi‑Condition Fuzzy Query in Redis

This article explains how to implement pagination, multi‑condition fuzzy search, and their combination using Redis Sorted Sets and Hashes, discusses performance optimizations and expiration strategies, and also contains promotional material for ChatGPT services and a community offering.

DatabaseRedisfuzzy search
0 likes · 12 min read
Implementing Pagination and Multi‑Condition Fuzzy Query in Redis
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 7, 2024 · Databases

Understanding Redis Data Types and Their Underlying Implementations

This article explains the internal structures of Redis data types—including strings, lists, sets, hashes, and sorted sets—detailing their memory representations, evolution across versions, time‑complexity characteristics, and the code implementations that enable efficient in‑memory operations.

Data StructuresMemory DatabaseRedis
0 likes · 16 min read
Understanding Redis Data Types and Their Underlying Implementations
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 StructureDatabaseListpack
0 likes · 14 min read
Understanding Redis Sorted Set Implementation and Real‑World Leaderboard Use Cases
Java Architect Essentials
Java Architect Essentials
Sep 23, 2022 · Databases

Redis Set and Sorted Set Internal Encodings: intset, Hashtable, Skiplist and Ziplist

This article explains why Redis stores set and sorted‑set objects using two different internal encodings, describes the intset and hashtable representations for sets, the skiplist and ziplist representations for sorted sets, shows the upgrade process with code examples, and lists the common commands for manipulating these data structures.

Data StructuresHashTableRedis
0 likes · 16 min read
Redis Set and Sorted Set Internal Encodings: intset, Hashtable, Skiplist and Ziplist
IT Services Circle
IT Services Circle
Jul 26, 2022 · Databases

Redis Data Structures: Strings, Lists, Hashes, Sets, and Sorted Sets with Commands and Use Cases

An in‑depth guide to Redis’s core data structures—String, List, Hash, Set, and Sorted Set—detailing their characteristics, common commands, practical examples, and typical application scenarios such as caching, counting, messaging, and ranking, with code snippets and reference links.

Data StructuresRediscommands
0 likes · 19 min read
Redis Data Structures: Strings, Lists, Hashes, Sets, and Sorted Sets with Commands and Use Cases
TAL Education Technology
TAL Education Technology
Dec 23, 2021 · Databases

Understanding Redis Sorted‑Set Implementation: From Linked List to Skiplist

This article explains how Redis implements its Sorted‑Set data type by starting from a basic ordered singly linked list, analyzing its insertion and query complexities, introducing the skiplist structure, deriving its O(log N) performance, and detailing the underlying C source code for creation, insertion, lookup, and deletion.

C++Data StructureRedis
0 likes · 32 min read
Understanding Redis Sorted‑Set Implementation: From Linked List to Skiplist
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Dec 10, 2021 · Fundamentals

Understanding Redis Sorted‑Set Implementation: From Singly Linked List to Skiplist

This article explains how Redis implements its Sorted‑Set using a skiplist, starting with the basics of a singly linked list, analyzing insertion and query complexities, deriving the skiplist structure and its O(log N) performance, and comparing it with hash tables, balanced trees, and B‑trees.

C++Data StructuresRedis
0 likes · 35 min read
Understanding Redis Sorted‑Set Implementation: From Singly Linked List to Skiplist
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
Sohu Tech Products
Sohu Tech Products
Jun 23, 2021 · Backend Development

Using Redis Data Structures for Efficient Large‑Scale Statistics: Cardinality, Sorting, and Aggregation

The article explains how to choose appropriate Redis data structures—such as Bitmap, HyperLogLog, Set, List, Hash, and Sorted Set—to efficiently handle massive statistical scenarios like UV counting, ranking, and set‑based aggregation, while providing concrete command examples and performance considerations.

BackendData StructuresHyperLogLog
0 likes · 13 min read
Using Redis Data Structures for Efficient Large‑Scale Statistics: Cardinality, Sorting, and Aggregation
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
Tencent Cloud Developer
Tencent Cloud Developer
Jan 26, 2021 · Databases

Understanding Redis Sorted Sets and Their Skiplist Implementation

Redis sorted sets (zsets) combine a hash table with a skiplist that provides O(log N) search, insertion, and deletion, using forward, backward, and span pointers to maintain element order and rank, enabling fast score‑based queries, leaderboards, and range operations via commands such as ZADD, ZRANK, and ZRANGE.

C ProgrammingData StructureDatabase
0 likes · 15 min read
Understanding Redis Sorted Sets and Their Skiplist Implementation
Architect
Architect
Oct 23, 2015 · Databases

Designing KV Schemas with Redis: Login System and Tag System Examples

The article explains how Redis's rich data structures enable flexible key‑value schema designs for a user login system and a tag system, contrasting them with traditional relational database approaches and demonstrating practical commands and Python code for common operations.

Database ComparisonKey-Value DesignLogin System
0 likes · 9 min read
Designing KV Schemas with Redis: Login System and Tag System Examples