Friday, June 12, 2015

Standard Building Blocks to Divide the Application using Spring Batch

When using Spring Batch for an application, we should divide the business logic such that we can utilize the following building blocks:

1. Transformation Step: Incoming or outgoing data has to be of a certain format. It has to be transformed as per the need of the application. 

2. Validation Step: Data needs to validated for correctness. File headers/trailers checks, checksums etc. can be applied to data for basic validation.

3. Read/Write: Read the Data from Database/File. Filter the data and write it to the Database/File.

4. Read/Modify/Write: Same as above, just that data can be modified before writing.

The modification of data forms the crux of the application and varies from application to application.

No comments:

Post a Comment