Tagged articles

order timeout

12 articles · Page 1 of 1
Xike
Xike
Aug 5, 2026 · Backend Development

How to Automatically Cancel Unpaid Orders When They Timeout

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.

Message QueueRocketMQTransaction
0 likes · 17 min read
How to Automatically Cancel Unpaid Orders When They Timeout
Cloud Architecture
Cloud Architecture
May 17, 2026 · Backend Development

Production Design for Order Timeout Closure: RabbitMQ Delay Queues, Idempotent State Machine

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.

Spring Bootdistributed systemshigh concurrency
0 likes · 40 min read
Production Design for Order Timeout Closure: RabbitMQ Delay Queues, Idempotent State Machine
Linyb Geek Road
Linyb Geek Road
May 14, 2026 · Backend Development

How to Build a Reliable 15‑Minute Order Auto‑Cancel in Java: From Naïve @Scheduled to Production‑Ready Redisson

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.

RedisRedissonScheduled Tasks
0 likes · 13 min read
How to Build a Reliable 15‑Minute Order Auto‑Cancel in Java: From Naïve @Scheduled to Production‑Ready Redisson
Architecture Digest
Architecture Digest
Oct 2, 2025 · Backend Development

How to Reliably Close Unpaid Orders: Proven Backend Strategies

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.

Message Queuebackendorder timeout
0 likes · 11 min read
How to Reliably Close Unpaid Orders: Proven Backend Strategies
macrozheng
macrozheng
Sep 6, 2025 · Backend Development

11 Proven Strategies to Auto‑Close Expired Orders in High‑Traffic Systems

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.

Delayed Queuebackendorder timeout
0 likes · 17 min read
11 Proven Strategies to Auto‑Close Expired Orders in High‑Traffic Systems
Selected Java Interview Questions
Selected Java Interview Questions
May 19, 2025 · Backend Development

Designing Automatic Order Closure: Comparing DB Polling, Redis Expiration, Redis Zset Delay Queue, and Message Queue Delayed Messages

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.

Delayed TasksMessage Queuedatabase polling
0 likes · 11 min read
Designing Automatic Order Closure: Comparing DB Polling, Redis Expiration, Redis Zset Delay Queue, and Message Queue Delayed Messages
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.

DelayQueueHashedWheelTimerSpring
0 likes · 11 min read
Implementing Automatic Order Cancellation for Timeout Orders in a Monolithic Backend System
Lobster Programming
Lobster Programming
May 17, 2024 · Backend Development

How to Implement Order Timeout Closure in E‑Commerce: 6 Proven Backend Solutions

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.

Delayed QueueRedisRocketMQ
0 likes · 8 min read
How to Implement Order Timeout Closure in E‑Commerce: 6 Proven Backend Solutions
Architect
Architect
Mar 30, 2024 · Backend Development

11 Ways to Auto-Close Expired Orders: From Passive to Distributed Queues

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.

Backend ArchitectureKafkaMessage Queue
0 likes · 19 min read
11 Ways to Auto-Close Expired Orders: From Passive to Distributed Queues
LouZai
LouZai
Mar 14, 2024 · Backend Development

N Practical Strategies to Auto‑Cancel Timed‑Out Orders

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
N Practical Strategies to Auto‑Cancel Timed‑Out Orders
21CTO
21CTO
Jun 27, 2023 · Backend Development

Order Timeout Solutions: JDK DelayQueue, RabbitMQ, RocketMQ, Redis & SchedulerX

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.

Redisdelay queuedistributed scheduling
0 likes · 14 min read
Order Timeout Solutions: JDK DelayQueue, RabbitMQ, RocketMQ, Redis & SchedulerX
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.

RedisRocketMQorder timeout
0 likes · 17 min read
Order Timeout Strategies: Scheduled Tasks, RocketMQ Delay Queue, RabbitMQ Dead‑Letter, Time Wheel, and Redis Expiration