Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Latest articles

16 min read

How to Auto‑Close Expired E‑Commerce Orders: Timers, Queues & Redis Time Wheels

Learn how to design and implement automatic order expiration in e‑commerce systems using three approaches—simple scheduled table scans, delayed message queues, and a Redis time‑wheel—detailing their trade‑offs, code examples, indexing tips, distributed locking, and failure‑handling strategies.

17 min read

Design and Implementation of Delayed Task Processing for Order Systems

This article explains various approaches to delayed task handling—such as database polling, JDK DelayQueue, Redis expiration listeners, Redisson delay queues, RocketMQ delayed messages, and RabbitMQ dead‑letter queues—evaluating their advantages, drawbacks, and best‑practice recommendations for reliable order‑expiration workflows.

8 min read

How to Prevent Duplicate Payments and Order Expiration in Payment Systems

This article examines common payment system anomalies such as duplicate charges and order expiration, explains how asynchronous and synchronous payment flows contribute to these issues, and provides both pre‑payment and post‑payment strategies—including UI improvements, return URLs, status checks, and automated refunds—to prevent and resolve them.