Tagged articles
30 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
Tencent Cloud Middleware
Tencent Cloud Middleware
Apr 22, 2026 · Backend Development

How TDMQ Pulsar Scales Million-Message Delayed Queues with Multi-Level Time Wheels

The article analyzes why large‑scale delayed messaging is needed, identifies the bottlenecks of the Apache Pulsar community solution, and explains TDMQ Pulsar's three‑step redesign—hierarchical time wheels, expiration re‑push, and immutable message IDs—that together enable stable million‑message delayed queues with controlled memory and minute‑level hole impact.

Apache PulsarDelayed MessagingMessage Queue
0 likes · 8 min read
How TDMQ Pulsar Scales Million-Message Delayed Queues with Multi-Level Time Wheels
Java Architect Essentials
Java Architect Essentials
Jun 10, 2025 · Backend Development

Why Rebuild a Distributed Scheduler? Inside a Custom Java Job Framework

This article explains the motivations behind creating a new distributed scheduling framework, compares existing solutions, and details the design choices—including gRPC communication, protobuf serialization, a custom NameServer for load balancing, and a built‑in message queue with persistence and retry mechanisms—to handle frequent task creation and dynamic parameter changes in a high‑concurrency environment.

Distributed SchedulingTime WheelgRPC
0 likes · 14 min read
Why Rebuild a Distributed Scheduler? Inside a Custom Java Job Framework
Java Captain
Java Captain
May 9, 2025 · Backend Development

Implementing Precise Order Cancellation: Delayed Task Solutions and Their Pitfalls

The article examines various approaches for implementing accurate order‑cancellation timers in e‑commerce systems, compares message‑queue delayed delivery, Redisson delay queues, Redis expiration listeners, RabbitMQ dead‑letter queues, and time wheels, and recommends reliable solutions while warning against common pitfalls.

Backend DevelopmentTime Wheeldelayed tasks
0 likes · 8 min read
Implementing Precise Order Cancellation: Delayed Task Solutions and Their Pitfalls
Java Architect Essentials
Java Architect Essentials
Apr 25, 2025 · Backend Development

Precise Order‑Closing Delayed Tasks: Best Practices and Common Pitfalls

This article compares several ways to implement order‑closing delayed tasks—message‑queue delayed delivery, Redisson DelayQueue, Redis expiration listening, RabbitMQ dead‑letter queues, and time wheels—explaining their mechanisms, drawbacks, and recommending the most reliable solutions for production systems.

Backend ArchitectureMessage QueueRabbitMQ
0 likes · 7 min read
Precise Order‑Closing Delayed Tasks: Best Practices and Common Pitfalls
Selected Java Interview Questions
Selected Java Interview Questions
Mar 30, 2025 · Backend Development

Implementing Precise Order Cancellation: Pitfalls of Redis Expiration and Better Alternatives

The article explains why using Redis expiration or RabbitMQ dead‑letter queues for delayed order‑cancellation tasks is unreliable, compares several approaches such as message‑queue delayed delivery, Redisson delay queues, and time wheels, and recommends robust solutions like RocketMQ or Pulsar for accurate timing.

Message QueueRabbitMQTime Wheel
0 likes · 7 min read
Implementing Precise Order Cancellation: Pitfalls of Redis Expiration and Better Alternatives
Su San Talks Tech
Su San Talks Tech
Jan 14, 2025 · Backend Development

Mastering Dubbo’s Time Wheel: From Theory to Source Code

This article explains the concept and implementation of the time wheel in Dubbo, covering its use for scheduled retries, heartbeat handling, underlying HashedWheelTimer mechanics, configuration details, performance considerations, and related issues, providing a thorough guide for backend developers.

DubboFailbackHashedWheelTimer
0 likes · 22 min read
Mastering Dubbo’s Time Wheel: From Theory to Source Code
Bin's Tech Cabin
Bin's Tech Cabin
Dec 25, 2024 · Backend Development

Unveiling Netty and Kafka Time Wheels: High‑Performance Scheduling Explained

This article explores the design and implementation of time wheel algorithms in Netty and Kafka, comparing their single‑layer and multi‑layer approaches, analyzing performance trade‑offs, and detailing how these systems achieve O(1) scheduling for massive delayed tasks while avoiding empty ticks.

BackendKafkaNetty
0 likes · 76 min read
Unveiling Netty and Kafka Time Wheels: High‑Performance Scheduling Explained
dbaplus Community
dbaplus Community
Dec 1, 2024 · Backend Development

Why Redis Expiration Listeners Fail for Delayed Tasks and Better Alternatives

This article examines why using Redis key‑space expiration notifications for delayed job execution is unreliable, compares common approaches such as message‑queue delayed delivery, RabbitMQ dead‑letter queues, time wheels, and Redisson DelayQueue, and provides practical recommendations for robust timeout handling in e‑commerce systems.

BackendRabbitMQTime Wheel
0 likes · 7 min read
Why Redis Expiration Listeners Fail for Delayed Tasks and Better Alternatives
Top Architect
Top Architect
Jun 7, 2024 · Backend Development

Deep Dive into XXL-JOB: Time Wheel Scheduling, Consistent Hash Routing, and Sharding Implementation

This article examines the open‑source XXL-JOB distributed task scheduler, explaining its lightweight architecture, time‑wheel based scheduling, consistent‑hash routing, sharding mechanisms, and includes annotated source code snippets to illustrate key implementation details for backend developers.

Backend DevelopmentConsistent HashTime Wheel
0 likes · 12 min read
Deep Dive into XXL-JOB: Time Wheel Scheduling, Consistent Hash Routing, and Sharding Implementation
Java Architect Essentials
Java Architect Essentials
Apr 16, 2024 · Backend Development

Choosing the Right Delayed Task Solution: Redis Expiration, RabbitMQ Dead Letter, Time Wheel, and Redisson DelayQueue

The article evaluates common delayed‑task implementations—Redis expiration listeners, RabbitMQ dead‑letter queues, time wheels, and Redisson DelayQueue—explaining their drawbacks, proper use cases, and recommending reliable message‑queue solutions for e‑commerce order‑closing scenarios.

BackendMessage QueueRabbitMQ
0 likes · 7 min read
Choosing the Right Delayed Task Solution: Redis Expiration, RabbitMQ Dead Letter, Time Wheel, and Redisson DelayQueue
Architecture Digest
Architecture Digest
Dec 21, 2023 · Backend Development

Comparison of Delayed Task Solutions in Java: Quartz, DelayQueue, Time Wheel, Redis and RabbitMQ

The article explains the concept of delayed tasks versus scheduled tasks in payment systems, outlines their key differences, and evaluates five practical implementation approaches—Quartz database polling, JDK DelayQueue, Netty's HashedWheelTimer, Redis ZSET/Keyspace notifications, and RabbitMQ delayed queues—detailing their code examples, advantages and drawbacks.

DelayQueueJavaQuartz
0 likes · 16 min read
Comparison of Delayed Task Solutions in Java: Quartz, DelayQueue, Time Wheel, Redis and RabbitMQ
DataFunTalk
DataFunTalk
Jul 23, 2023 · Backend Development

Rearchitecting the Advertising AB Testing Platform: Service Decomposition, Data Modeling, DAG Scheduling, and DDD Practices

The article describes how Volcano Engine's DataTester team refactored the advertising AB testing platform by splitting services, redesigning the data model with MySQL and ClickHouse, introducing DAG‑based scheduling and a time‑wheel algorithm, and applying domain‑driven design and rigorous unit testing to improve stability, scalability, and maintainability.

AB testingDAG schedulingDomain-Driven Design
0 likes · 16 min read
Rearchitecting the Advertising AB Testing Platform: Service Decomposition, Data Modeling, DAG Scheduling, and DDD Practices
JD Tech
JD Tech
Feb 23, 2023 · Backend Development

Comprehensive Guide to Scheduling Tasks: Algorithms, Java Implementations, and Distributed Solutions

This article provides an in‑depth overview of scheduled task processing, covering common business scenarios, fundamental principles, single‑machine algorithms such as min‑heap and time‑wheel, Java utilities like Timer, DelayQueue, ScheduledExecutorService, Spring Task, Quartz, and distributed approaches using Redis, Elastic‑Job, and XXL‑Job.

Distributed SystemsTime Wheelcron
0 likes · 22 min read
Comprehensive Guide to Scheduling Tasks: Algorithms, Java Implementations, and Distributed Solutions
Architect's Guide
Architect's Guide
Jul 27, 2022 · Backend Development

Design and Implementation of Delayed Messaging in Distributed Systems

This article surveys common delayed‑message solutions—including database, RocksDB, Redis, and open‑source MQs like RocketMQ, Pulsar, and QMQ—explaining their architectures, advantages, drawbacks, and practical considerations for building reliable distributed asynchronous messaging.

Backend ArchitectureDelayed MessagingRocketMQ
0 likes · 13 min read
Design and Implementation of Delayed Messaging in Distributed Systems
Selected Java Interview Questions
Selected Java Interview Questions
Jul 18, 2022 · Backend Development

Implementing Automatic Order Closure in E‑commerce: Scheduled Tasks, RocketMQ Delay Queue, RabbitMQ DLQ, Time Wheel, and Redis Expiration Listener

The article examines five backend techniques for automatically closing unpaid e‑commerce orders—scheduled tasks, RocketMQ delayed messages, RabbitMQ dead‑letter queues, a time‑wheel algorithm, and Redis key‑expiration listeners—detailing their principles, advantages, drawbacks, and sample Java code implementations.

Message QueueRocketMQTime Wheel
0 likes · 16 min read
Implementing Automatic Order Closure in E‑commerce: Scheduled Tasks, RocketMQ Delay Queue, RabbitMQ DLQ, Time Wheel, and Redis Expiration Listener
Architect
Architect
Jul 5, 2022 · Backend Development

Why Using Redis Expiration Listener and RabbitMQ Dead‑Letter Queues for Delayed Tasks Is a Bad Idea

The article explains why common shortcuts such as Redis key‑space expiration notifications, RabbitMQ dead‑letter queues, and non‑persistent time wheels are unreliable for implementing delayed tasks, and recommends using proper message‑queue solutions like RocketMQ, Pulsar, or Redisson DelayQueue with compensation mechanisms.

Message QueueRabbitMQTime Wheel
0 likes · 8 min read
Why Using Redis Expiration Listener and RabbitMQ Dead‑Letter Queues for Delayed Tasks Is a Bad Idea
Architect's Tech Stack
Architect's Tech Stack
Jun 27, 2022 · Backend Development

Why Redis Expiration and RabbitMQ Dead‑Letter Queues Are Unsuitable for Delayed Tasks and Recommended Alternatives

The article explains why using Redis key‑expiration notifications or RabbitMQ dead‑letter queues for delayed task execution is risky, compares several common approaches, and recommends reliable solutions such as dedicated message‑queue schedulers, Redisson delay queues, or time‑wheel implementations with proper compensation mechanisms.

Message QueueRabbitMQTime Wheel
0 likes · 9 min read
Why Redis Expiration and RabbitMQ Dead‑Letter Queues Are Unsuitable for Delayed Tasks and Recommended Alternatives
MaGe Linux Operations
MaGe Linux Operations
Jun 25, 2022 · Backend Development

Why Redis Expiration and RabbitMQ Dead‑Letter Queues Fail for Delayed Tasks – Safer Alternatives

This article examines why using Redis key‑space expiration listeners, RabbitMQ dead‑letter queues, and in‑memory time wheels are unreliable for precise delayed‑task execution, and recommends more robust solutions such as dedicated message‑queue delay features and Redisson DelayQueue with fallback mechanisms.

RabbitMQTime Wheeldelayed tasks
0 likes · 6 min read
Why Redis Expiration and RabbitMQ Dead‑Letter Queues Fail for Delayed Tasks – Safer Alternatives
IT Architects Alliance
IT Architects Alliance
Jun 3, 2022 · Backend Development

Which Delayed Task Strategy Wins? A Deep Dive into DB Polling, DelayQueue, Time Wheel, Redis, and RabbitMQ

The article compares five delayed‑task implementations—database polling, JDK DelayQueue, Netty time wheel, Redis sorted sets, and RabbitMQ dead‑letter queues—detailing their concepts, Java code examples, advantages, and drawbacks to help developers choose the most suitable approach for order‑timeout scenarios.

DelayQueueJavaQuartz
0 likes · 16 min read
Which Delayed Task Strategy Wins? A Deep Dive into DB Polling, DelayQueue, Time Wheel, Redis, and RabbitMQ
vivo Internet Technology
vivo Internet Technology
Mar 23, 2022 · Backend Development

Understanding the Time Wheel Mechanism in Dubbo and Redisson

The article explains why a time‑wheel scheduler outperforms traditional timers, describes single‑ and multi‑layer wheel designs, and walks through Apache Dubbo’s HashedWheelTimer implementation—including TimerTask, Timeout, bucket and worker components—showing its use in Dubbo heartbeats and Redisson lock renewal.

DubboJavaScheduling
0 likes · 23 min read
Understanding the Time Wheel Mechanism in Dubbo and Redisson
Top Architect
Top Architect
Jan 31, 2022 · Backend Development

Delayed Queue Technology Research and Implementation Overview

This article surveys various delayed queue implementations—including Kafka, RocketMQ, Redis (Redisson), and Netty’s HashedWheelTimer—examining their design principles, advantages, drawbacks, and integration strategies, and proposes a unified micro‑service architecture leveraging Kafka topics, Redis ZSETs, and thread‑pool optimizations for reliable message scheduling.

KafkaMicroservicesNetty
0 likes · 15 min read
Delayed Queue Technology Research and Implementation Overview
Java Interview Crash Guide
Java Interview Crash Guide
Jan 12, 2022 · Backend Development

Designing Scalable Delayed Queues: Kafka, RocketMQ, Redis & More

This article surveys delayed‑queue implementations, comparing Kafka, RocketMQ, and Redis (Redisson) designs, outlining their architectures, pros and cons, integration details, timing‑wheel mechanisms, and practical considerations for building a reliable distributed delayed‑queue service.

Distributed SystemsKafkaTime Wheel
0 likes · 13 min read
Designing Scalable Delayed Queues: Kafka, RocketMQ, Redis & More
Tencent Qidian Tech Team
Tencent Qidian Tech Team
Nov 1, 2021 · Backend Development

How to Build a Scalable Distributed Timer with Redis and Time Wheel

This article explains the design of a distributed timer service using a time‑wheel data structure stored in Redis, covering application scenarios, required features, architecture components such as access layer, scheduler, worker, and management center, and detailing reliability and performance techniques.

KafkaTime Wheeldistributed timer
0 likes · 13 min read
How to Build a Scalable Distributed Timer with Redis and Time Wheel
Top Architect
Top Architect
Oct 27, 2021 · Backend Development

Implementation Strategies for Delayed Tasks in Java Applications

The article explains the concept of delayed tasks, distinguishes them from scheduled tasks, and evaluates five practical implementation approaches—including database polling, JDK DelayQueue, Netty time‑wheel, Redis sorted‑set and key‑space notifications, and RabbitMQ delayed queues—while providing code samples, performance pros and cons, and deployment considerations.

JavaQuartzRabbitMQ
0 likes · 20 min read
Implementation Strategies for Delayed Tasks in Java Applications
Tencent Cloud Developer
Tencent Cloud Developer
Mar 31, 2021 · Backend Development

Design and Implementation of a Distributed Timer Service at Tencent

The article details Tencent’s design and implementation of a distributed timer service—using a multi‑level time‑wheel stored in a KV system, a scheduler daemon, broker, and notifier—to support reliable, low‑latency delayed tasks such as order closure and SMS activation, while addressing isolation, rate limiting, disaster recovery, and delivery guarantees.

KV storageTime Wheeldistributed timer
0 likes · 15 min read
Design and Implementation of a Distributed Timer Service at Tencent
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 12, 2018 · Backend Development

How Alibaba’s Cainiao Scales a Lightweight Timer Engine for Billions of Packages

Facing the challenge of processing over 100 million daily parcels, Alibaba’s Cainiao designed a lightweight, time‑wheel‑based scheduling engine that decouples task storage from timing, leverages partitioned task chains, master‑driven node IDs, and cluster‑wide soft‑load balancing to achieve scalable, fault‑tolerant timer processing.

Backend EngineeringCluster ManagementTime Wheel
0 likes · 12 min read
How Alibaba’s Cainiao Scales a Lightweight Timer Engine for Billions of Packages