Tagged articles
order timeout
13 articles · Page 1 of 1
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.
IdempotencyMessage QueueRabbitMQ
0 likes · 16 min read


XikeAug 5, 2026 · Backend Development
The article explains a reliable, idempotent solution for automatically cancelling orders that remain unpaid after a configured deadline, covering data modeling, state transitions, trigger mechanisms using delayed messages or scans, handling race conditions with payment, and essential monitoring and pitfalls.
BackendMessage QueueRocketMQ
0 likes · 17 min read

This article presents a production‑grade architecture for automatically closing unpaid orders, detailing why simple scheduled tasks are insufficient, outlining high‑risk scenarios, defining five core objectives, comparing implementation options, and providing a complete RabbitMQ TTL + DLX solution with state‑machine idempotency, high‑concurrency handling, observability, and Kubernetes deployment guidance.
RabbitMQSpring Bootdistributed systems
0 likes · 40 min read

The article walks through the pitfalls of a seemingly simple 15‑minute unpaid‑order cancellation requirement, evaluates five implementation options—from a basic @Scheduled poll to Redis ZSet, DelayQueue, and distributed Redisson solutions—culminating in a production‑grade Redisson scheduler with optimistic‑lock safeguards and detailed best‑practice guidelines.
JavaOptimistic LockRedis
0 likes · 13 min read

This article examines common pitfalls and compares five backend solutions—database scans, JDK DelayQueue, Redis keyspace notifications, Redis sorted sets, and delayed MQ messages—for reliably handling order timeout in high‑traffic e‑commerce systems, highlighting their advantages, drawbacks, and best‑fit scenarios.
BackendMessage Queueorder timeout
0 likes · 11 min read

This article examines eleven practical techniques—from passive checks and scheduled jobs to advanced message‑queue and Redis solutions—for automatically closing expired e‑commerce orders, comparing their advantages, limitations, and ideal deployment scenarios.
Backenddelayed queueorder timeout
0 likes · 17 min read

This article examines four techniques for automatically closing overdue orders—database polling, Redis key‑expiration listeners, Redis sorted‑set delay queues, and message‑queue delayed messages—detailing their implementations, advantages, drawbacks, and practical recommendations for reliable backend systems.
Message Queuedatabase pollingdelayed tasks
0 likes · 11 min read

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

This article compares six practical backend approaches—JDK DelayQueue, RocketMQ delayed messages, Redis expiration, Redis Zset, a dedicated task center, and passive closure—to automatically close unpaid e‑commerce orders after a configurable timeout, outlining their advantages, drawbacks, and suitable scenarios.
RedisRocketMQTask Scheduling
0 likes · 8 min read

The article systematically compares eleven technical approaches for automatically closing expired e‑commerce orders, detailing each method’s implementation steps, trade‑offs, performance characteristics, and ideal deployment scenarios, and finally ranks them to guide practical selection.
Distributed SchedulingKafkaMessage Queue
0 likes · 19 min read


LouZaiMar 14, 2024 · Backend Development
This article analyzes multiple engineering solutions for automatically cancelling orders after the payment timeout, covering single‑machine and cluster scheduled‑task designs (Quartz, ElasticJob, XXL‑JOB), delayed‑message techniques (RocketMQ, custom delay service, Redis), and essential concurrency and monitoring best practices.
ElasticJobQuartzRedis
0 likes · 13 min read


21CTOJun 27, 2023 · Backend Development
This article examines various order timeout handling techniques in e‑commerce, detailing JDK’s DelayQueue, RabbitMQ delayed messages, RocketMQ timer‑wheel, Redis expiration listeners, and distributed batch processing with SchedulerX, comparing their advantages, drawbacks, and suitability for different latency and scale requirements.
Distributed SchedulingRabbitMQRedis
0 likes · 14 min read

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.
RabbitMQRedisRocketMQ
0 likes · 17 min read
