春季批与石英工作? [英] spring batch vs quartz jobs?

查看:90
本文介绍了春季批与石英工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是批量处理的新手.我正在尝试从简单的调度程序和工作开始.但是我很困惑 春季批与石英工作.我的理解是

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:- quartz提供了框架,即调度程序框架和作业框架(以防我不想使用spring batch作业).是吗?

Quartz :- quartz provides both frameworks i.e scheduler framework and job framework(in case I do not want to use spring batch jobs). Right ?

Spring Batch:-:它仅提供作业框架.我一直使用Quatz schecduler来安排春季批处理作业. spring是否也提供自己的调度程序?

Spring Batch :- It only provides the job framework . I have always send using Quatz schecduler to schedule spring batch jobs. Does spring provides its own scheduler also ?

推荐答案

Quartz是一个调度框架.就像每小时或每月的每个星期五执行某件事"

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

Spring Batch是一个框架,用于定义将要执行的内容". 您可以定义一个包含步骤的作业.通常,步骤是由项目读取器,可选项目处理器和项目编写器组成的,但是您可以定义自定义词干.您还可以告诉Spring批处理每10项以及其他很多内容进行提交.

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.

您可以使用Quartz启动Spring Batch作业.

You can use Quartz to start Spring Batch jobs.

因此,基本上,Spring Batch定义了应该执行的操作,Quartz定义了应执行的时间.

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

这篇关于春季批与石英工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆