Tag

DelayQueue

0 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Jan 22, 2025 · Backend Development

Implementing Automatic Order Cancellation for Timeout Orders in a Monolithic Backend System

This article explains three backend solutions—database polling with scheduled tasks, JDK DelayQueue, and Netty's HashedWheelTimer—for automatically cancelling unpaid orders after a timeout in a monolithic architecture, detailing their implementation steps, pros, cons, and optimization tips with Java code examples.

Backend DevelopmentDelayQueueHashedWheelTimer
0 likes · 11 min read
Implementing Automatic Order Cancellation for Timeout Orders in a Monolithic Backend System
IT Services Circle
IT Services Circle
Dec 22, 2024 · Backend Development

Various Strategies for Implementing Order Auto‑Cancellation in High‑Concurrency Systems

This article compares seven practical approaches—DelayQueue, database polling, Redis queues, Redis key expiration callbacks, RabbitMQ delayed messages, scheduled task frameworks, and event‑stream processing—for automatically cancelling unpaid orders, outlining their suitable scenarios, code examples, advantages, disadvantages, and optimization tips.

DelayQueueJavaOrder Cancellation
0 likes · 12 min read
Various Strategies for Implementing Order Auto‑Cancellation in High‑Concurrency Systems
Architect's Guide
Architect's Guide
Jan 9, 2024 · Backend Development

Implementing Delayed Task Scheduling in Java: Quartz, DelayQueue, Time Wheel, Redis, and RabbitMQ

This article compares delayed tasks with scheduled tasks and presents six practical Java solutions—database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis ZSET, Redis key‑space notifications, and RabbitMQ delayed queues—detailing their implementations, advantages, and drawbacks for handling order‑timeout scenarios.

DelayQueueJavaQuartz
0 likes · 16 min read
Implementing Delayed Task Scheduling in Java: Quartz, DelayQueue, Time Wheel, Redis, and RabbitMQ
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
Top Architect
Top Architect
May 28, 2022 · Backend Development

Various Approaches to Implementing Delayed Tasks in Java Backend Systems

The article compares delayed and scheduled tasks and presents five backend solutions—database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis ZSET, and RabbitMQ delayed queues—detailing their implementations, code examples, outputs, and pros and cons.

DelayQueueJavaQuartz
0 likes · 19 min read
Various Approaches to Implementing Delayed Tasks in Java Backend Systems
IT Architects Alliance
IT Architects Alliance
Apr 5, 2022 · Backend Development

Understanding Java Timers, DelayQueue, ScheduledThreadPoolExecutor, and Time‑Wheel Algorithms

This article explains the concepts, use cases, and internal implementations of Java's Timer, DelayQueue, and ScheduledThreadPoolExecutor, compares their performance characteristics, and introduces the time‑wheel scheduling algorithm—including hierarchical wheels—to address scalability challenges in high‑volume timed‑task systems.

ConcurrencyDelayQueueJava
0 likes · 12 min read
Understanding Java Timers, DelayQueue, ScheduledThreadPoolExecutor, and Time‑Wheel Algorithms
Top Architect
Top Architect
Mar 29, 2022 · Backend Development

Various Implementations of Delayed Tasks in Java: Quartz, DelayQueue, HashedWheelTimer, Redis, and RabbitMQ

This article compares several approaches to implementing delayed tasks in Java, including Quartz polling, JDK DelayQueue, Netty's HashedWheelTimer, Redis sorted sets and keyspace notifications, and RabbitMQ delayed queues, analyzing their principles, code examples, advantages, and drawbacks for order timeout handling.

DelayQueueHashedWheelTimerJava scheduling
0 likes · 16 min read
Various Implementations of Delayed Tasks in Java: Quartz, DelayQueue, HashedWheelTimer, Redis, and RabbitMQ
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.

DelayQueueJavaRedis
0 likes · 8 min read
Implementing a Delayed Queue with Redis Zset in Java Spring Boot
Top Architect
Top Architect
Jan 5, 2022 · Backend Development

Implementation and Comparison of Delayed Task Solutions in Java

This article explains the concept of delayed tasks, compares them with scheduled tasks, and presents five implementation approaches—database polling, JDK DelayQueue, time‑wheel algorithm, Redis sorted sets, and message‑queue based delay queues—detailing their code, advantages, and drawbacks.

DelayQueueJavaMessage Queue
0 likes · 17 min read
Implementation and Comparison of Delayed Task Solutions in Java
Architecture Digest
Architecture Digest
Sep 9, 2021 · Backend Development

Design and Implementation of Delayed Task Processing in Java: Database Polling, DelayQueue, Time Wheel, Redis, and RabbitMQ

The article explains the concept of delayed tasks versus scheduled tasks and presents five practical Java implementations—database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis sorted sets and keyspace notifications, and RabbitMQ delayed queues—detailing their code, advantages, and drawbacks.

DelayQueueJavaQuartz
0 likes · 18 min read
Design and Implementation of Delayed Task Processing in Java: Database Polling, DelayQueue, Time Wheel, Redis, and RabbitMQ
Top Architect
Top Architect
Sep 4, 2021 · Backend Development

Various Implementations of Delayed Task Scheduling in Java: Quartz, DelayQueue, HashedWheelTimer, Redis, and RabbitMQ

This article compares delayed tasks with scheduled tasks and presents five practical Java implementations—database polling with Quartz, JDK DelayQueue, Netty's HashedWheelTimer, Redis sorted sets and keyspace notifications, and RabbitMQ delayed queues—detailing their code, advantages, and drawbacks.

DelayQueueJavaQuartz
0 likes · 18 min read
Various Implementations of Delayed Task Scheduling in Java: Quartz, DelayQueue, HashedWheelTimer, Redis, and RabbitMQ