There are three routes configured for Scatter-Gather and incoming event has a payload is an Array of three objects .
How routing will take place in this scenario?
A . Incoming array objects would be split into three and each part would be sent to one route each in sequential manner
B . Incoming array objects would be split into three and each part would be sent to one route each in parallel
C . Entire event would be sent to each route sequentially
D . Entire event would be sent to each route in parallel
Answer: D
Explanation:
Entire event would be sent to each route in parallel.
Scatter-Gather works as follows:
– The Scatter-Gather component receives a Mule event and sends a reference of this Mule event to each processing route.
– Each of the processing routes starts executing in parallel. After all processors inside a route finish processing, the route returns a Mule event, which can be either the same Mule event without modifications or a new Mule event created by the processors in the route as a result of the modifications applied.
– After all processing routes have finished execution, the Scatter-Gather component creates a new Mule event that combines all resulting Mule events from each route, and then passes the new Mule event to the next component in the flow.
Diagram
Description automatically generated
Latest MCPA-Level 1 exam Dumps Valid Version with 58 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund