← Back to context

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.

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