title: Spring batch Partitioning with multiple steps in parallel?
body: <p>I have implemented spring batch partitioning for a single steps where a master step delegates its work to several slave threads which than gets executed in parallel. As shown in following image.(Reference <a href="http://docs.spring.io/spring-batch/reference/html/scalability.html" rel="noreferrer">Spring docs</a>)
  <img src="https://i.stack.imgur.com/5OruH.png" alt="enter image description here">
  Now what if I have multiple steps which are to be executed in parallel? How to configure them in  batch configuration? My current configuration is</p>
  
  <pre><code> &lt;batch:job id="myJob" restartable="true" job-repository="jobRepository" &gt;
          &lt;batch:listeners&gt;
              &lt;batch:listener ref="myJoblistener"&gt;&lt;/batch:listener&gt;
          &lt;/batch:listeners&gt;
  
          &lt;batch:step id="my-master-step"&gt;
              &lt;batch:partition step="my-step" partitioner="my-step-partitioner" handler="my-partitioner-handler"&gt;
              &lt;/batch:partition&gt;
          &lt;/batch:step&gt;
      &lt;/batch:job&gt;
  
      &lt;batch:step id="my-step" &gt;
          &lt;batch:tasklet ref="myTasklet" transaction-manager="transactionManager" &gt;
          &lt;/batch:tasklet&gt;
          &lt;batch:listeners&gt;
              &lt;batch:listener ref="myStepListener"&gt;&lt;/batch:listener&gt;
          &lt;/batch:listeners&gt; 
      &lt;/batch:step&gt;
  </code></pre>
  
  <p>My architecture diagrams should be like following image:
  <img src="https://i.stack.imgur.com/nwGPy.jpg" alt="enter image description here"></p>
  
  <p>I am not sure even if it is possible using spring batch.Any ideas or I am way over my head to implement it.Thank you.</p>