Comment by skeletal88
3 days ago
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.
3 days ago
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.
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
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
Like Shedlock?
while not working on out of the box clustered this is trivial issue to address