Tagged articles

scheduled task

12 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Sep 20, 2026 · Backend Development

Order Timeout Auto-Cancellation: RabbitMQ Delayed Queue + Scheduled Task Dual Insurance Pattern

This article details a production-ready dual-insurance pattern for e-commerce order timeout cancellation, combining RabbitMQ delayed message queues for real-time processing with scheduled database scans as a fallback, including Spring Boot implementation code, idempotent cancellation logic, and distributed deployment considerations.

RabbitMQSpring Bootdelayed queue
0 likes · 16 min read
Order Timeout Auto-Cancellation: RabbitMQ Delayed Queue + Scheduled Task Dual Insurance Pattern
Java Architect Handbook
Java Architect Handbook
Mar 9, 2026 · Backend Development

How to Auto‑Cancel Unpaid Orders in Spring Boot Within 30 Minutes

This article explains three practical ways to automatically cancel orders that remain unpaid for 30 minutes in a Spring Boot application, covering a scheduled task, a RabbitMQ delayed queue, and Redis key‑expiration events, with complete code examples and configuration steps.

RedisSpring Bootdelayed queue
0 likes · 8 min read
How to Auto‑Cancel Unpaid Orders in Spring Boot Within 30 Minutes
FunTester
FunTester
Jun 6, 2023 · Backend Development

Dynamic Adjustment of Java ThreadPoolExecutor Core Pool Size Based on Queue Length

The article explains how to extend Java's ThreadPoolExecutor by dynamically increasing or decreasing corePoolSize according to the task queue length, using setCorePoolSize, a daemon monitoring thread, and scheduled tasks to improve asynchronous processing performance in Spring Boot applications.

CorePoolSizeDynamic ScalingSpringBoot
0 likes · 7 min read
Dynamic Adjustment of Java ThreadPoolExecutor Core Pool Size Based on Queue Length
Top Architect
Top Architect
Jul 6, 2022 · Backend Development

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

The article explains how to automatically close unpaid e‑commerce orders by comparing five approaches—simple scheduled tasks, RocketMQ delayed messages, RabbitMQ dead‑letter queues, a time‑wheel algorithm, and Redis key‑expiration listeners—detailing their advantages, drawbacks, and providing Java code examples for each method.

@OrderRabbitMQRocketMQ
0 likes · 16 min read
Implementing Automatic Order Closure in E‑commerce: Scheduled Tasks, RocketMQ Delay Queue, RabbitMQ Dead‑Letter Queue, Time Wheel Algorithm, and Redis Expiration
NetEase Media Technology Team
NetEase Media Technology Team
Aug 2, 2019 · Backend Development

Delayed Message Queue Implementation: Use Cases, Comparison, and NetEase Open Course Practice

The article explains how delayed message queues replace inefficient scheduled‑task scans in distributed systems, outlines common use cases such as order timeouts and retries, compares RabbitMQ, RocketMQ, Kafka, ActiveMQ and Redis implementations, and details NetEase’s ActiveMQ‑based solution with idempotent processing and traceability.

ActiveMQKafkaRabbitMQ
0 likes · 13 min read
Delayed Message Queue Implementation: Use Cases, Comparison, and NetEase Open Course Practice