Tagged articles
3 articles
Page 1 of 1
NiuNiu MaTe
NiuNiu MaTe
Sep 8, 2025 · Backend Development

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.

Message QueueScheduled Tasksbackend design
0 likes · 16 min read
How to Auto‑Close Expired E‑Commerce Orders: Timers, Queues & Redis Time Wheels
Java Captain
Java Captain
Apr 10, 2025 · Backend Development

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.

Distributed SystemsMessage Queuedelayed tasks
0 likes · 17 min read
Design and Implementation of Delayed Task Processing for Order Systems
Java Backend Technology
Java Backend Technology
Oct 29, 2020 · Operations

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.

Payment IntegrationRefundasynchronous payment
0 likes · 8 min read
How to Prevent Duplicate Payments and Order Expiration in Payment Systems