Book Image

Mastering Spring Application Development

By : Anjana Mankale
Book Image

Mastering Spring Application Development

By: Anjana Mankale

Overview of this book

Table of Contents (19 chapters)
Mastering Spring Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. Locating a job.

  2. Identifying the input.

  3. Scheduling the job.

  4. Starting the job.

  5. Processing the job.

  6. Go to step 2 (for fresh input).