Tag

Zset

0 views collected around this technical thread.

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
Top Architect
Top Architect
Sep 3, 2024 · Databases

Implementing Online User Counting with Redis Sorted Sets (ZSET)

This article explains how to track online users using Redis sorted sets by describing the core ZSET commands (zadd, zrangeByScore, zremrangeByScore, zrem), showing code examples for adding, querying, and cleaning up user sessions, and discussing fingerprint-based identification methods.

Online UsersRedisZset
0 likes · 10 min read
Implementing Online User Counting with Redis Sorted Sets (ZSET)
Java Tech Enthusiast
Java Tech Enthusiast
Sep 3, 2024 · Databases

Implementing Pagination and Multi‑Condition Fuzzy Search in Redis

By leveraging Redis sorted sets for ordered pagination and hash fields with HSCAN for multi‑condition fuzzy matching, the article shows how to build a cached query pipeline that creates temporary ZSets keyed by pattern, supports efficient page retrieval, and uses expirations and refresh strategies to balance freshness and performance.

RedisZsetfuzzy search
0 likes · 9 min read
Implementing Pagination and Multi‑Condition Fuzzy Search in Redis
Selected Java Interview Questions
Selected Java Interview Questions
Jul 30, 2024 · Backend Development

Implementing Online User Count with Redis Sorted Sets in Java

This article explains how to build an online user counting feature by leveraging Redis sorted sets (zset) in Java, covering user identification, the core Redis commands (zadd, zrangeByScore, zremrangeByScore, zrem), code examples, and periodic cleanup logic.

JavaOnline UsersRedis
0 likes · 8 min read
Implementing Online User Count with Redis Sorted Sets in Java
Top Architect
Top Architect
Jul 29, 2024 · Databases

Implementing Online User Counting with Redis Sorted Sets (ZSET)

This article explains how to build an online user counting feature using Redis sorted sets (ZSET) by detailing the core commands (zadd, zrangeByScore, zremrangeByScore, zrem), user identification methods, and providing Java and JavaScript code examples, while also noting unrelated promotional content at the end.

BackendDatabaseJava
0 likes · 8 min read
Implementing Online User Counting with Redis Sorted Sets (ZSET)
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 11, 2024 · Backend Development

Implementing Online User Counting with Redis Sorted Sets (zset)

This article explains how to track online users by assigning each user a unique identifier, storing it in a Redis sorted set with an expiration timestamp, and using zadd, zrangeByScore, zremrangeByScore, and zrem commands together with browser fingerprinting to reliably count and clean up active sessions.

BackendFingerprintJSJava
0 likes · 7 min read
Implementing Online User Counting with Redis Sorted Sets (zset)
Lobster Programming
Lobster Programming
May 7, 2024 · Backend Development

How to Build Redis-Based Delayed Queues: 3 Practical Approaches

This article explains three common methods for implementing delayed queues with Redis—using key expiration notifications, Zset with scheduled tasks, and Redisson’s RDelayedQueue—detailing their concepts, core code examples, advantages, and limitations for backend developers.

Delayed QueueJavaRedis
0 likes · 5 min read
How to Build Redis-Based Delayed Queues: 3 Practical Approaches
Architect's Guide
Architect's Guide
Nov 24, 2023 · Databases

Implementing Conditional Query and Pagination with Redis

This article explains how to use Redis' Sorted Set and Hash structures to achieve efficient pagination, multi‑condition fuzzy queries, and their combination, while also discussing performance optimizations such as expiration handling and data synchronization strategies.

Cache OptimizationFuzzy QueryRedis
0 likes · 10 min read
Implementing Conditional Query and Pagination with Redis
Architect
Architect
Nov 14, 2023 · Databases

Implementing Pagination and Multi‑Condition Fuzzy Query in Redis

This article explains how to use Redis Sorted Sets for efficient pagination, leverages Hashes and HSCAN for multi‑condition fuzzy searches, and combines both techniques with optimization strategies such as temporary ZSet expiration and real‑time update handling to build a practical caching‑layer query solution.

CacheFuzzy QueryRedis
0 likes · 10 min read
Implementing Pagination and Multi‑Condition Fuzzy Query in Redis
Architecture Digest
Architecture Digest
Jul 18, 2023 · Databases

Implementing Conditional Query and Pagination in Redis

This article explains how to use Redis Sorted Sets and Hashes to achieve pagination, fuzzy multi‑condition queries, and their combination, while also discussing performance optimizations such as expiration and update strategies for generated ZSet collections.

RedisZsetcaching
0 likes · 8 min read
Implementing Conditional Query and Pagination in Redis
Top Architect
Top Architect
Jul 5, 2023 · Databases

Implementing Pagination and Multi‑Condition Fuzzy Query in Redis

This article explains how to achieve efficient pagination and multi‑condition fuzzy searches in Redis by leveraging Sorted Sets for ordered paging, Hashes with HSCAN for pattern matching, and combining both techniques with caching and expiration strategies to optimize performance.

CacheFuzzy QueryRedis
0 likes · 9 min read
Implementing Pagination and Multi‑Condition Fuzzy Query in Redis
Architecture Digest
Architecture Digest
May 23, 2023 · Databases

Redis Data Types: Overview, Use Cases, and Internal Implementations

This article provides a comprehensive English guide to Redis’s ten core data types—including strings, hashes, lists, sets, sorted sets, streams, hyperloglog, bitmap, and bitfield—detailing their definitions, typical application scenarios, underlying storage mechanisms, conversion rules, and sample Redis commands with code examples.

Data TypesDatabaseRedis
0 likes · 31 min read
Redis Data Types: Overview, Use Cases, and Internal Implementations
Sohu Tech Products
Sohu Tech Products
Apr 27, 2022 · Databases

Designing Cache for Relational List Data with Redis

This article explains how to design Redis cache for relational list data such as user timelines or news feeds, covering fixed-length caching, consistency, resource utilization, using ZSET structures, handling additions, deletions, queries, and strategies like preloading, retry mechanisms, and asynchronous rebuilding.

BackendRedisRelational Data
0 likes · 8 min read
Designing Cache for Relational List Data with Redis
IT Architects Alliance
IT Architects Alliance
Jan 27, 2022 · Backend Development

Implementing a Delayed Queue with Redis Zset in Java Spring Boot

This article explains the concept of delayed queues, outlines typical use cases, compares implementation options, and provides a complete Java Spring Boot example that uses Redis Zset to create, manage, and execute delayed tasks with accompanying code snippets and test results.

BackendDelayQueueJava
0 likes · 8 min read
Implementing a Delayed Queue with Redis Zset in Java Spring Boot
Architecture Digest
Architecture Digest
Dec 17, 2021 · Backend Development

Implementing Rate Limiting with Redis: setnx, ZSet, and Token‑Bucket Techniques

This article explains three Redis‑based rate‑limiting strategies—using SETNX, sorted‑set (ZSet) sliding windows, and a token‑bucket algorithm with List—provides Java code examples for each method, discusses their advantages and drawbacks, and shows how to integrate them into backend services.

BackendJavaRate Limiting
0 likes · 6 min read
Implementing Rate Limiting with Redis: setnx, ZSet, and Token‑Bucket Techniques
IT Architects Alliance
IT Architects Alliance
Nov 29, 2021 · Databases

Three Redis-Based Rate Limiting Techniques: setnx, ZSet Sliding Window, and Token Bucket

This article explains three Redis-powered rate‑limiting methods—using SETNX for simple counters, leveraging ZSET for a sliding‑window algorithm, and implementing a token‑bucket scheme with LISTs—providing Java code examples, advantages, and practical considerations for high‑concurrency back‑end services.

BackendJavaRate Limiting
0 likes · 7 min read
Three Redis-Based Rate Limiting Techniques: setnx, ZSet Sliding Window, and Token Bucket
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 27, 2020 · Databases

Understanding Redis Internal Data Structures: SDS, List, Set, Zset, and Hash Implementations

This article explains the design and implementation details of Redis's Simple Dynamic String (SDS) and the underlying structures of its core collections—List, Set, Sorted Set (Zset), and Hash—covering their memory layouts, advantages, and the conditions that trigger different internal representations.

Data StructuresImplementationRedis
0 likes · 10 min read
Understanding Redis Internal Data Structures: SDS, List, Set, Zset, and Hash Implementations
Top Architect
Top Architect
Oct 9, 2020 · Backend Development

Implementing Delayed Queues with Redis and Other Technologies

This article explains how Redis can be used to implement delayed queues, compares its advantages with other solutions such as RabbitMQ, RocketMQ, Kafka, Netty and Java DelayQueue, and provides practical guidance on using sorted sets and timestamps for time‑based task scheduling.

BackendDelayed QueueKafka
0 likes · 8 min read
Implementing Delayed Queues with Redis and Other Technologies
360 Quality & Efficiency
360 Quality & Efficiency
Sep 6, 2019 · Backend Development

Understanding Redis ZSET Score Precision and Its Interaction with Java Double

This article examines the floating‑point nature of Redis ZSET scores, the precision limits of Java double values, how Redis stores and retrieves these scores, and practical guidelines for avoiding precision loss when using timestamps or large numeric scores in backend development.

BigDecimalJavaPrecision
0 likes · 5 min read
Understanding Redis ZSET Score Precision and Its Interaction with Java Double