The use of quartz in a cluster environment

I am looking to use the quartz scheduler in my application because I have a clustered environment and want to guarantee that only one instance of my work starts every hour. My question is: should I use the JDBC job store or some kind of β€œexternal” job data store to ensure that only one instance in my cluster starts the job at any given hour or is there more magic for quartz that I know?

+3
source share
1 answer

Yes, you need to use JDBC-JobStore, or TerracottaJobStore to enable the mechanism of interaction between nodes (in one case, they exchange data in db tables, and in the other through the network functions of Terracotta).

+2
source

Source: https://habr.com/ru/post/1619186/


All Articles