Project: mule
Issue MULE-7923: Better support for sequential processing in scatter-gather
Scatter Gather replaces the router which was deprecated in 3.5.0. However, it doesn't behave that well on sequential use cases as its predecesor. That's because if you configure a threading pool of just one, the processing is not sequential just across the routers but across all executions of the flow. Another misbehaving use case is the one in which the routes are extremely fast, like just a couple of ms each. In that case, the overall response gain is lower than the time penalty of managing the threads. To accommodate for these use cases we need to better support the sequential case of scatter gather, its threading profile type should change from asynchronousThreadingProfileType to threadingProfileType. This will enable a doThreading option which when set to false will execute always on the same thread, behaving similar to the old router.
Story points: 1