Difference between Spring Cloud Task and Spring Batch?

前端 未结 1 1885
忘了有多久
忘了有多久 2021-01-07 08:04

I went through the Introducing Spring Cloud Task, but things are not clear for the following questions.

I\'m using Spring Batch

1) What\'s the use of

相关标签:
1条回答
  • 2021-01-07 08:28

    Spring Cloud Task has a broader scope than Spring Batch. It is designed for any short lived task, including but not limited to (Spring) Batch jobs. A short lived task could be a Java process, a shell script, a Docker container, etc. Spring Cloud Task has its own meta-data tables to track the progress/status/stats of tasks.

    In the context of Spring Batch, Spring Cloud Task provides a number of additional features:

    • Batch informational messages: ability to emit messages based on Spring Batch listeners events. Those messages can be consumed by streaming apps and make it possible to bridge tasks and streaming apps.
    • DeployerPartitionHandler: an additional partition handler that is suitable to cloud environments to dynamically deploy workers in a remote partitioning setup.
    0 讨论(0)
提交回复
热议问题