Batch framework

Spring Batch is a framework for batch processing that provides reusable functions that are essential in processing large volumes of records, including:
  • logging/tracing
  • transaction management
  • job processing statistics
  • job restart
It also provides more advanced technical services and features that will enable extremely high-volume and high performance batch jobs through optimizations and partitioning techniques. Spring Batch is a framework for batch processing – execution of a series of jobs. In Spring Batch, A job consists of many steps and each step consists of a READ-PROCESS-WRITE task or single operation task (tasklet).
For "READ-PROCESS-WRITE" process, it means "read" data from the resources (csv, xml or database), "process" it and "write" it to other resources (csv, xml and database). For example, a step may read data from a CSV file, process it and write it into the database. Spring Batch provides many made Classes to read/write CSV, XML and database.
For "single" operation task (tasklet), it means doing single task only, like clean up the resources after or before a step is started or completed.
And the steps can be chained together to run as a job.

Comments

Popular posts from this blog

Convention-over-configuration rapid application development

Spring Framework

AOP framework