spring batch vs quartz jobs?

后端 未结 4 1835
有刺的猬
有刺的猬 2021-02-01 06:39

I am new to batch processing. I am trying to start with simple scheduler and job. But i am confused b/w spring batch vs quartz jobs. My understanding is

Quartz

4条回答
  •  长发绾君心
    2021-02-01 07:39

    Quartz is a scheduling framework. Like "execute something every hour or every last friday of the month"

    Spring Batch is a framework that defines that "something" that will be executed. You can define a job, that consists of steps. Usually a step is something that consists of item reader, optional item processor and item writer, but you can define a custom stem. You can also tell Spring batch to commit on every 10 items and a lot of other stuff.

    You can use Quartz to start Spring Batch jobs.

    So basically Spring Batch defines what should be done, Quartz defines when it should be done.

提交回复
热议问题