Here is the scenario -
- In flow1 we run a sql query to retrieve some rows ordered by timestamp
- Flow2 defines a sequence of API calls , so this flow executes asynchronously
- For each result in flow1 , we need to invoke flow2 "synchronously" , i.e next element should be processed only when execution of flow2 has comepleted for previous element
With the split and join solution, the order can not be guaranteed.
What could be the simplest way to handle this scenario ?