Introduction to Spring Batch
Spring Batch is itself a batch framework that is used to develop applications to do batch jobs. It supports batch optimization and job partitioning and is highly scalable, which provokes us to consider it in the development of batch applications.
Use cases for using Spring Batch
Let us list a few use cases where we can use Spring batch in the application:
To send bulk mails to the user at a scheduled time
To read messages from the queue
To update transactions at a given time
To process all the received files from the user at a given time
Goals of batch processing
The batch processing key goal is to fulfill the following set of steps in order to complete the batch job:
Locating a job.
Identifying the input.
Scheduling the job.
Starting the job.
Processing the job.
Go to step 2 (for fresh input).