Tagged articles
20 articles
Page 1 of 1
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.

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

BackendDelayQueueJava
0 likes · 12 min read
Various Strategies for Implementing Order Auto‑Cancellation in High‑Concurrency Systems
dbaplus Community
dbaplus Community
Jun 3, 2024 · Backend Development

Why Your ScheduledExecutorService Stops After an Exception—and How to Fix It

A mis‑handled exception in a ScheduledExecutorService can silently halt the entire scheduled thread pool, causing critical periodic jobs to stop; this article explains the underlying delay‑queue and thread‑pool mechanics, shows reproducible code, and provides practical safeguards to keep scheduled tasks alive.

DelayQueueJavaScheduledExecutorService
0 likes · 9 min read
Why Your ScheduledExecutorService Stops After an Exception—and How to Fix It
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
Su San Talks Tech
Su San Talks Tech
Feb 28, 2023 · Backend Development

11 Ways to Implement Delayed Tasks in Java: From DelayQueue to Quartz

This article surveys eleven Java techniques for delayed task execution—including DelayQueue, Timer, ScheduledThreadPoolExecutor, RocketMQ, RabbitMQ, Redis key‑expiration, Redisson, Netty, Hutool, Quartz and simple polling—explaining their core principles, code examples, and when each approach is appropriate.

DelayQueueJavaMessageQueue
0 likes · 25 min read
11 Ways to Implement Delayed Tasks in Java: From DelayQueue to Quartz
FunTester
FunTester
Aug 22, 2022 · Backend Development

How to Build a High‑Performance Log Replay Engine with Java DelayQueue

This article explains the design and implementation of a timestamp‑based log replay engine that replays HTTP traffic using Java's DelayQueue, thread pools, and custom data structures, and provides performance test results demonstrating its ability to handle hundreds of thousands of requests per second.

DelayQueueJavaPerformance Testing
0 likes · 10 min read
How to Build a High‑Performance Log Replay Engine with Java DelayQueue
FunTester
FunTester
Jul 27, 2022 · Backend Development

How Java’s DelayQueue Handles Million‑QPS Loads: Performance Test Insights

This article examines the implementation of java.util.concurrent.DelayQueue for high‑throughput performance testing, presents a custom Delayed object, shares benchmark code and results across various thread counts, and concludes that DelayQueue can sustain several million QPS when properly tuned.

BenchmarkDelayQueueJava
0 likes · 7 min read
How Java’s DelayQueue Handles Million‑QPS Loads: Performance Test Insights
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
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.

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

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

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

DelayQueueJavaSpringBoot
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
Big Data Technology & Architecture
Big Data Technology & Architecture
Jul 25, 2020 · Big Data

Kafka Transactions, Replication Issues, HW/LEO Evolution, and Reliability Mechanisms

This article explains how Kafka implements transactions, handles under‑replicated partitions, manages high‑watermark and log‑end‑offset evolution, uses leader epochs for consistency, discusses read‑committed isolation, explains why read‑write separation is not supported, and describes delay queues, dead‑letter/retry queues, auditing, tracing, lag calculation, key metrics, and performance‑optimising design features.

DelayQueueHighWatermarkKafka
0 likes · 25 min read
Kafka Transactions, Replication Issues, HW/LEO Evolution, and Reliability Mechanisms
Programmer DD
Programmer DD
Aug 10, 2018 · Fundamentals

Mastering Java’s DelayQueue: How It Works and When to Use It

This article explains Java's DelayQueue—a blocking queue that releases elements only after their delay expires—covering its primary use cases, core components like ReentrantLock, Condition, and PriorityQueue, the Delayed interface, internal structure, and detailed implementations of the offer() and take() methods, including a discussion of potential memory‑leak pitfalls.

BlockingQueueDelayQueueDelayed Interface
0 likes · 7 min read
Mastering Java’s DelayQueue: How It Works and When to Use It