Spring / Spring batch Interview questions
How do I configure parallel execution of steps in Spring batch?
The split configuration can be used to execute a job steps in parallel. In the below example flow1 and flow2 are executed parallely.
<job id="myJob"> <split id="split1" task-executor="taskExecutor" next="step4"> <flow id="flow1"> <step id="step1" parent="s1" next="step2"/> <step id="step2" parent="s2"/> </flow> <flow id="flow2"> <step id="step3" parent="s3"/> </flow> </split> <step id="step4" parent="s4"/> </job>
More Related questions...