ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 150 - MCD - Level 1 discussion

Report
Export

A Scatter-Gather processes three separate HTTP requests. Each request returns a Mule event with a JSON payload. What is the final output of the Scatter-Gather?

A.
An Array of the three Mule event Objects
Answers
A.
An Array of the three Mule event Objects
B.
An Object containing all three Mule event Objects
Answers
B.
An Object containing all three Mule event Objects
C.
An Array of the three JSON payload Objects
Answers
C.
An Array of the three JSON payload Objects
D.
An Object containing all three JSON payload Objects
Answers
D.
An Object containing all three JSON payload Objects
Suggested answer: B

Explanation:

Correct answer isAn Object containing all three Mule event Objects

The Scatter-Gather component is a routing event processor that processes a Mule event through different parallel processing routes that contain different event processors. Each route receives a reference to the Mule event and executes a sequence of one or more event processors. Each of these routes uses a separate thread to execute the event processors, and the resulting Mule event can be either the same Mule event without modifications or a new Mule event with its own payload, attributes, and variables. The Scatter-Gather component then combines the Mule events returned by each processing route into a new Mule event that is passed to the next event processor only after every route completes successfully.

The Scatter-Gather component executes each route in parallel, not sequentially. Parallel execution of routes can greatly increase the efficiency of your Mule application and may provide more information than sequential processing.

Sample output is as below

MuleSoft Documentation reference : https://docs.mulesoft.com/mule-runtime/4.3/scatter-gather-concept

asked 18/09/2024
Demilson Mantegazine
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first