Spring Batch executing independent steps in parallel mode
There is a scenario to execute the steps or tasks associated to a batch are to be executed in parallel as it batch need to complete mush fast
so we have planned to find out, are there any dependency between the tasks, what do mean by dependency, “does the step 1 is feeding data to step 2 & step 2 is feeding data to other step” if yes, then it is sequential no other way to do it.
But in our case that not the way, steps are not dependent on each other, so
On creating the spring batch flow with the flow builder and split the flows with TaskExecutor
Sample code :-
this flow is added to job builder and executing the job the insertion flow, update floe and deletion flow would run parallel
based on the requirement we can choose the executor type