I am fairly new to Spring batch framework.
I am trying to read about 1 million records in reader with commit-interval=10000
and in writer I need to do 2 things with the List of items.
- Store the list of items to DB
- Write few information from those items to a flat file.
I am thinking these two tasks can be run in parallel, rather than writing sequential java code in writer class.
What should be the best way to have two writers that operate in parallel and do their own tasks?