Wednesday, 18 November 2020

Introduction to Spring Batch

 

Batch Processing is a way of executing list of tasks as a group. Most of the batch processing applications will execute without any user interaction.

 

For example, you may want to greet your website subscribers on every morning with latest published Articles. You can do this via Batch Processing.

 

In this tutorial series, you are going to learn, how to achieve batch processing via Spring Batch API.

 

Following are some of use cases that you will achieve via Spring Batch.

a.   Perform ETL (Extract, Transform, and Load) tasks.

b.   Reporting: For example reporting user bank statement every month, report mobile post-paid bills etc.,

c.    To Perform Data Migration Tasks. Spring Batch provide features like rollback and commit counts to make these data migration tasks easy.

d.   Parallel processing of Batch jobs is possible via Spring Batch.

e.   Orchestration of tasks is possible. For example, a batch job need to perform following tasks sequentially.

a.   Load a file content

b.   Convert the file content to lower case

c.    Remove stop words like (a, an, the)

d.   Correct spell mistakes

e.   Put it into the search engine like Elastic Search.

Using Spring Batch we can Orchestrate tasks in cleaner way.

f.     You can stop/start/restart jobs and maintain state between executions.

g.   Provides facility to skip some records from execution.

h.   Support Transaction Management

i.     Data validation is possible via Spring Batch

 

Reference

https://jcp.org/en/jsr/detail?id=352

Previous                                                    Next                                                    Home

No comments:

Post a Comment