Tagged articles
28 articles
Page 1 of 1
dbaplus Community
dbaplus Community
May 6, 2026 · Backend Development

Why Scheduled Tasks Fail for Million‑Scale Order Cancellation and How Redis Solves It

The article dissects a common interview question about automatically canceling unpaid orders after 30 minutes, explains why naïve cron‑based scans are unsuitable for tens of millions of rows, and presents three progressively robust solutions using Redis expiration, Redis ZSet polling, and message‑queue or time‑wheel architectures.

Delayed TaskDistributed SystemsMessage Queue
0 likes · 10 min read
Why Scheduled Tasks Fail for Million‑Scale Order Cancellation and How Redis Solves It
SpringMeng
SpringMeng
Feb 21, 2026 · Backend Development

How to Elegantly Implement an Online User Count with Redis ZSET

This article explains how to build a real‑time online user counter by identifying users via tokens or browser fingerprints, storing them in a Redis sorted set, and using ZADD, ZRANGEBYSCORE, ZREMRANGEBYSCORE and ZREM commands to add, query, and clean the data.

BackendFingerprintJSJava
0 likes · 7 min read
How to Elegantly Implement an Online User Count with Redis ZSET
Su San Talks Tech
Su San Talks Tech
Jan 21, 2026 · Backend Development

How to Track Online Users in Real‑Time with Redis ZSET in SpringBoot

Learn a practical approach to count online users in real time by leveraging Redis sorted sets (zset) with SpringBoot, covering user identification via tokens or browser fingerprinting, key Redis commands (zadd, zrangeByScore, zremrangeByScore, zrem), and scheduled cleanup logic.

JavaOnline UsersReal-Time
0 likes · 7 min read
How to Track Online Users in Real‑Time with Redis ZSET in SpringBoot
macrozheng
macrozheng
Sep 11, 2025 · Backend Development

Track Online Users with Redis ZSET in Spring Boot

This guide explains how to implement an online user counting feature using Redis sorted sets (ZSET) in a Spring Boot application, covering user identification via tokens or browser fingerprinting, adding, querying, and cleaning up entries with zadd, zrangeByScore, zremrangeByScore, and zrem commands.

Backend DevelopmentFingerprintJSOnline Users
0 likes · 8 min read
Track Online Users with Redis ZSET in Spring Boot
Java Backend Technology
Java Backend Technology
Sep 8, 2025 · Backend Development

How to Track Online Users with Redis ZSET: A Step‑by‑Step Guide

This article explains how to implement an online‑user counting feature using Redis sorted sets (zset) by leveraging the four core commands zadd, zrangeByScore, zremrangeByScore, and zrem, with Java/Spring code examples and optional browser‑fingerprinting for unauthenticated visitors.

JavaOnline UsersZSet
0 likes · 7 min read
How to Track Online Users with Redis ZSET: A Step‑by‑Step Guide
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.

Backend DevelopmentOnline UsersZSet
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.

HashPerformance OptimizationZSet
0 likes · 9 min read
Implementing Pagination and Multi‑Condition Fuzzy Search in Redis
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.

JavaOnline UsersZSet
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.

BackendFingerprintJSJavaScript
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.

Backend DevelopmentJavaZSet
0 likes · 5 min read
How to Build Redis-Based Delayed Queues: 3 Practical Approaches
Senior Tony
Senior Tony
Dec 25, 2023 · Databases

Mastering Redis ZSet: Real‑Time Ranking, Set vs List, and Underlying Implementations

This article walks through a real‑world sales‑ranking scenario, explains why a simple SQL solution falls short at scale, and demonstrates how Redis Set and ZSet data structures provide high‑performance, real‑time ranking, including detailed command examples, performance metrics, and an in‑depth look at ZSet's internal listpack and skiplist‑dict implementations.

Data StructuresSetSorted Set
0 likes · 11 min read
Mastering Redis ZSet: Real‑Time Ranking, Set vs List, and Underlying Implementations
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.

Fuzzy QueryHashZSet
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 QueryHash
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.

HashZSetfuzzy-search
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 QueryHash
0 likes · 9 min read
Implementing Pagination and Multi‑Condition Fuzzy Query in Redis
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.

BackendCache DesignRelational 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.

DelayQueueJavaSpringBoot
0 likes · 8 min read
Implementing a Delayed Queue with Redis Zset in Java Spring Boot
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.

KafkaMessage QueueRabbitMQ
0 likes · 8 min read
Implementing Delayed Queues with Redis and Other Technologies