Spring Scheduling: @Scheduled vs Quartz

Quartz is an order of magnitude more complex than Spring’s built in scheduler, including support for persistent, transactional and distributed jobs. It’s a bit of a pig, though, even with Spring’s API support.

If all you need to is to execute methods on a bean every X seconds, or on a cron schedule, then @Scheduled (or the various options in Spring’s <task> config schema) is probably enough

Leave a Comment