Tagged articles
scheduled task
12 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

This tutorial walks through configuring an enterprise WeChat robot, linking it to Hermes' message gateway, building a skill that runs CPU and memory checks, scheduling periodic inspections, and automatically sending the results to the WeChat robot for hands‑free server performance monitoring.
HermesSkillWeChat
0 likes · 5 min read

This article explains three practical ways to automatically cancel orders that remain unpaid for 30 minutes in a Spring Boot application, covering a scheduled task, a RabbitMQ delayed queue, and Redis key‑expiration events, with complete code examples and configuration steps.
RedisSpring Bootdelayed queue
0 likes · 8 min read

This article explains how to configure a Spring Boot scheduled task to execute just once, covering three approaches—specifying a start time with TaskScheduler, using @Scheduled with an initial delay, and creating a custom PeriodicTrigger—complete with runnable code examples.
Custom TriggerSpring BootTaskScheduler
0 likes · 7 min read

This article explains three practical Spring Boot approaches—scheduled tasks, delayed RabbitMQ queues, and Redis key‑expiration events—to automatically cancel orders that remain unpaid for 30 minutes, complete with ready‑to‑use Java code examples.
JavaRabbitMQRedis
0 likes · 6 min read

This tutorial demonstrates how to configure a SpringBoot application to repeatedly call a third‑party HTTP API, parse the returned JSON with FastJSON, and process each data item concurrently using a fixed thread pool initialized in a scheduled task.
FastjsonHTTPJSON parsing
0 likes · 5 min read

This article explains three Spring Boot approaches—using @Scheduled tasks, RabbitMQ delayed queues, and Redis key‑expiration events—to automatically cancel orders that remain unpaid for 30 minutes, complete with code samples and configuration guidance.
BackendRabbitMQRedis
0 likes · 8 min read

The article explains how to extend Java's ThreadPoolExecutor by dynamically increasing or decreasing corePoolSize according to the task queue length, using setCorePoolSize, a daemon monitoring thread, and scheduled tasks to improve asynchronous processing performance in Spring Boot applications.
CorePoolSizeDynamic ScalingSpringBoot
0 likes · 7 min read

The article explains how to process a batch of overdue unpaid orders in a Spring scheduled task by wrapping each order's business logic in a separate REQUIRES_NEW transaction, catching exceptions, and manually rolling back only the failing transaction so that other orders remain unaffected.
JavaREQUIRES_NEWSpring
0 likes · 6 min read

The article explains how to automatically close unpaid e‑commerce orders by comparing five approaches—simple scheduled tasks, RocketMQ delayed messages, RabbitMQ dead‑letter queues, a time‑wheel algorithm, and Redis key‑expiration listeners—detailing their advantages, drawbacks, and providing Java code examples for each method.
@OrderRabbitMQRocketMQ
0 likes · 16 min read

The article explains how delayed message queues replace inefficient scheduled‑task scans in distributed systems, outlines common use cases such as order timeouts and retries, compares RabbitMQ, RocketMQ, Kafka, ActiveMQ and Redis implementations, and details NetEase’s ActiveMQ‑based solution with idempotent processing and traceability.
ActiveMQKafkaMessage Queue
0 likes · 13 min read

This article explains how to diagnose and manually re‑execute a Spring @Scheduled task that fails to send notifications by using Arthas to obtain the ApplicationContext, invoke the bean method, and reveals that a missing timeout in Hutool caused the original hang.
ArthasJavaSpring
0 likes · 6 min read
