Member-only story
Step Execution In Spring Batch
Spring Batch concept offers processing of data in the form of batch jobs. It offers reusable functions for processing huge volumes of records. It also includes a logging/tracing, transaction management, job processing statics, skip, job restart, and resource management. Spring Batch takes care of all that with an optimal performance.
A Real Time Use case of Spring Batch
One of the most common use case in a developer’s life is the ‘Report Generation’ of high volume data, where we can apply the concept of Spring Batch. For example, let’s assume you have a report generation system, where you need to read a high volume of data from a database and write the same data in a CSV file. Here, in this scenario we can use Spring Batch to fulfil our requirements as the traditional way of generating report may not handle the high volume of data. Obviously, in this case the database will be source and CSV file will be the destination.
What are the common use cases of Spring Batch?
- ETL (Extract, Transform, Load)
- Data Migration
- Parallel Processing
- Reporting
- Exchange of Information
What is the Step in Spring Batch Processing?
A step is a phase in a job that defines how the actual processing will occur for that portion of the job. There are two types of steps…