I read in documentation, multi-threaded step is not safe to be used as many of the ItemReaders and Writers are not thread safe.
I am using FlatFileItemReader to read and process items.
In case of the file where there are huge number of items to be processed, I am using remote partitioning.
But some of the steps has input file with just 2-3 items (they are just market ids e.g eu, gb, etc). I will be adding few more markets. I need to run some commands which takes these market ids as input. I want to run commands in parallel for all of them.
Is multithreaded step safe to use for such use case even though I am using FlatFileItemReader ? or I should go for remote partitioning (there is not much data to be partitioned) ?
Also if I use multi-threaded step, will it run properly I launch multiple instances of same job with different parameters e.g. different dates ?