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 ?
The simplest way of dealing with the “asking a question” scenario is to ask in one place at a time. Otherwise you could end up with contradicting solutions, or you get an answer in one place, but on the second site people still spend their time answering a question you already have an answer for.
Sorry about posting at multiple places , just that I realized after posting on stackoverflow that this forum was probably more active and faster way to get the solution. Will ensure to update the first solution from either forum to other one.