News for hackers. Stuff that matters.
Re:Rating 26 years of Java changes by skeletal88 on Saturday October 11, 2025 @05:23PM (#45552828)
Then you need to deploy it on multiple nodes and neex to make sure it only runs once for each run of the cron, etc.
Re:Rating 26 years of Java changes by bdangubic on Saturday October 11, 2025 @05:41PM (#45552953)
while not working on out of the box clustered this is trivial issue to address
Re:Rating 26 years of Java changes by didntcheck on Saturday October 11, 2025 @09:29PM (#45554322)
I believe Quartz is the go-to solution for this. It's not part of Spring but it offers a similar annotation-driven interface, but with distributed locking via a database
Re:Rating 26 years of Java changes by bdangubic on Sunday October 12, 2025 @04:43PM (#45561713)
Absolutely! But Quartz is also quite heavy. If all you need is to ensure scheduled jobs run in a clustered environment there are more “lighweight” options
Re:Rating 26 years of Java changes by happymellon on Monday October 13, 2025 @03:02AM (#45565550)
Like Shedlock?