Tagged articles

@Scheduled

5 articles · Page 1 of 1
LuTiao Programming
LuTiao Programming
Jul 24, 2026 · Backend Development

Why Scheduled Tasks Run Multiple Times in a Cluster – The Real Issue Isn’t Quartz but Poor Architecture

When a Java application that uses Spring’s @Scheduled moves from a single server to a cluster, the same job may execute on every node, causing duplicate orders, messages, and data; the article explains why this happens, examines common lock‑based fixes and their pitfalls, and proposes a robust, idempotent, sharded task architecture.

@ScheduledTask Shardingbackend
0 likes · 15 min read
Why Scheduled Tasks Run Multiple Times in a Cluster – The Real Issue Isn’t Quartz but Poor Architecture
dbaplus Community
dbaplus Community
Apr 29, 2026 · Backend Development

Choosing a Scheduling Solution: Quartz vs XXL‑Job vs @Scheduled – Core Principles, Use Cases, Pros & Cons

The article provides a detailed comparison of three Java scheduling solutions—Spring's @Scheduled, Quartz, and XXL‑Job—covering their underlying mechanisms, key features, typical scenarios, common pitfalls, and practical recommendations to help developers select the most suitable option for their projects.

@ScheduledQuartzTask Scheduling
0 likes · 18 min read
Choosing a Scheduling Solution: Quartz vs XXL‑Job vs @Scheduled – Core Principles, Use Cases, Pros & Cons
Code Ape Tech Column
Code Ape Tech Column
Jan 26, 2026 · Backend Development

Prevent Duplicate Spring @Scheduled Jobs in Multi‑Instance Deployments with ShedLock

When a Spring Boot application using @Scheduled is deployed on multiple servers, each instance triggers the same job, leading to duplicate processing; this article explains why the problem occurs, reviews simple single‑node and Redis lock approaches, and provides a step‑by‑step guide to integrate the ShedLock framework for reliable, annotation‑driven distributed locking.

@ScheduledShedLockdistributed lock
0 likes · 8 min read
Prevent Duplicate Spring @Scheduled Jobs in Multi‑Instance Deployments with ShedLock
Shepherd Advanced Notes
Shepherd Advanced Notes
Dec 17, 2024 · Backend Development

Spring Boot Scheduling: Timer vs ScheduledExecutorService vs @Scheduled

This article compares three single‑node scheduling approaches in Spring Boot—Java's legacy Timer, the modern ScheduledExecutorService, and Spring's @Scheduled annotation—showing their implementations, execution characteristics, thread handling, error behavior, and when to prefer each solution.

@ScheduledJava concurrencyScheduledExecutorService
0 likes · 19 min read
Spring Boot Scheduling: Timer vs ScheduledExecutorService vs @Scheduled