Saturday, December 27, 2014

Using Spring Batch to Read, Process and Write Entities in Mongo

Almost all of the enterprise applications require bulk processing to perform business operations in mission critical environments. These business operations include complex processing of large volumes of data at regular intervals without requiring any user interactions. Some Examples are Month-End Calculations, Quaterly Rollups, Data Migration and various other operations. 

Spring Batch is an open source framework for batch processing – execution of a series of steps. Spring Batch helps developers to concentrate on business logic and framework takes care of the entire batch infrastructure.  
This example demonstrates use of Spring Batch with MongoItemReader and MongoItemWriter to read data from MongoDB, Process it and write back to Mongo DB.

Photo credit: Spring Source