I am trying to implement multithreading in spring batch. In my implementation i want
- Single multithreaded Reader (As we are reading only one file)
- Multi thread processor and writer
I can't implement general chunking as there reader will be multhreded which i don't want.
So next option is asyncItemProcessor/asynchItemWriter. But what i have seen that reader and writer are single threaded only 'asyncItemProcessor' runs in multiple threads in 'asyncItemProcessor/asynchItemWriter.
Is there is anyway where i can run 'Reader' single threaded and processor and writer as multithreaded ?