Tag

time wheel

1 views collected around this technical thread.

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.

JavaMessage Queuedistributed scheduling
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 DevelopmentMessage QueueRabbitMQ
0 likes · 8 min read
Implementing Precise Order Cancellation: Delayed Task Solutions and Their 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 QueueRabbitMQRedis
0 likes · 7 min read
Implementing Precise Order Cancellation: Pitfalls of Redis Expiration 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 HashSharding
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.

Delay QueueMessage 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 schedulingData Pipeline
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 SystemsJavaPriority Queue
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.

Delayed MessagingDistributed SystemsMessage Queue
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.

Backend DevelopmentMessage QueueRabbitMQ
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 QueueRabbitMQRedis
0 likes · 8 min read
Why Using Redis Expiration Listener and RabbitMQ Dead‑Letter Queues for Delayed Tasks Is a Bad Idea
Architect
Architect
Jul 3, 2022 · Backend Development

Order Timeout Strategies: Scheduled Tasks, RocketMQ Delay Queue, RabbitMQ Dead‑Letter, Time Wheel, and Redis Expiration

The article compares five practical approaches for automatically closing unpaid orders—scheduled tasks, RocketMQ delayed messages, RabbitMQ dead‑letter queues, a time‑wheel algorithm, and Redis key‑expiration listeners—detailing their principles, advantages, limitations, and providing concrete Java code examples for each method.

Message QueueRabbitMQRedis
0 likes · 17 min read
Order Timeout Strategies: Scheduled Tasks, RocketMQ Delay Queue, RabbitMQ Dead‑Letter, Time Wheel, and Redis Expiration
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 QueueRabbitMQRedis
0 likes · 9 min read
Why Redis Expiration and RabbitMQ Dead‑Letter Queues Are Unsuitable for Delayed Tasks and Recommended Alternatives
Architect
Architect
Apr 17, 2022 · Backend Development

Research on Delayed Queue Technologies and Implementation Approaches

This article surveys various delayed‑queue solutions—including Kafka pause/resume, RocketMQ delay levels, Redis/Redisson zset timers, Youzan's custom design, Netty's HashedWheelTimer, and a Kafka‑based time‑wheel—analyzing their architectures, pros and cons, and offering practical implementation guidance.

Delayed QueueKafkaMessaging
0 likes · 12 min read
Research on Delayed Queue Technologies and Implementation Approaches
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.

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

Delayed QueueKafkaMicroservices
0 likes · 15 min read
Delayed Queue Technology Research and Implementation Overview
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.

Backend DevelopmentKV storagedistributed timer
0 likes · 15 min read
Design and Implementation of a Distributed Timer Service at Tencent
Didi Tech
Didi Tech
Oct 12, 2020 · Backend Development

Understanding Kafka's Time Wheel Implementation for Efficient Delayed Task Processing

The article explains how Kafka implements a hierarchical time‑wheel—a ring of bucket sets with a map for O(1) insertion, removal and expiration—to replace costly per‑tick scans, enabling efficient management of millions of delayed tasks across multiple timeout layers.

Data StructureKafkaalgorithm
0 likes · 16 min read
Understanding Kafka's Time Wheel Implementation for Efficient Delayed Task Processing