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.
DelayQueueHashedWheelTimerJava
0 likes · 11 min read