Wednesday, August 20, 2014

Spring Batch in Action

1. based on Spring Batch 2.1
2. source code http://code.google.com/p/springbatch-in-action/
3. Spring Batch processes items in chunks.Chunk processing
allows streaming data instead of loading all the data in memory. By default, chunk
processing is single threaded and usually performs well.
4. If you return null from the ItemProcessor method process, processing for
that item stops and Spring Batch won’t insert the item in the database. (Filter)
5. First, the size of a chunk and the commit interval are the same thing! Second, there’s
no definitive value to choose. Our recommendation is a value between 10 and 200.
6. Spring Batch needs two infrastructure components:
■ Job repository—To store the state of jobs (finished or currently running)
■ Job launcher—To create the state of a job before launching it
7. the job repository stores job execution metadata in a database
to provide Spring Batch reliable monitoring and restart features.

No comments:

Post a Comment