title: How to process each product one by one with incremental progress update using Spring reactive?
body: <p>I need help on Spring Reactive where a rest call posts list of Json objects and spring boot server should send the processing events one by one.
  Let me explain in brief with an example.</p>
  
  <p>Let us take there are 20 products in the Front-end UI, user selects all the products to be processed.
  Each product processing takes minimum 1 min in the server side. Whenever each product is processed, server should send json message structure as
  event to the Front-end UI so that user will be able to see incremental progress of each product processing in the server.</p>
  
  <p>In the UI , it should look like this.</p>
  
  <blockquote>
    <p>Product 1 processed successfully</p>
    
    <p>Product 2 processed successfully</p>
    
    <p>Product 3 failed</p>
  </blockquote>
  
  <p>like this.....</p>
  
  <p>In the server side, the java code should be like this. Please suggest how to achieve using Spring Reactive.</p>
  
  <pre><code>public Flux&lt;ProdModel&gt; createAllCGs(List&lt;Product&gt; prodList) {
  
          for(Product p : prodList) {
  
              //Process here ...
          }
  
          //use Spring Reactor Flux
  
          //return Flux type object in the form of Json structure event not as Text Stream event.
      }
  </code></pre>
  
  <p>I know there are workarounds to achieve it using traditional polling mechanism or sending the product one by one.
  My question is more on Spring Reactive side where the rest call sends a bunch of products to be processed one by one by providing corresponding
  response in the json format to the UI side.
  I do not know whether it is possible or not. If you think it is not possible using Spring Reactive, that is also fine for me so that I can communicate to my architect who has suggested this.</p>