MCIA - Level 1 Exam QuestionsBrowse all questions from this exam

MCIA - Level 1 Exam - Question 63


A Mule application is being designed to perform product orchestration. The Mule application needs to join together the responses from an Inventory API and a

Product Sales History API with the least latency.

To minimize the overall latency, what is the most idiomatic (used for its intended purpose) design to call each API request in the Mule application?

Show Answer
Correct Answer: A

To minimize overall latency while joining responses from different APIs in a Mule application, the most effective design is to use the Scatter-Gather component. This component allows each API request to be sent in parallel instead of sequentially, thereby reducing the overall time taken to receive all responses. By calling each API request in a separate route of a Scatter-Gather, you achieve concurrent processing and faster aggregation of responses, which is crucial for minimizing latency in orchestration processes.

Discussion

2 comments
Sign in to comment
madgeezerOption: A
Aug 5, 2022

A. Call each API request in a separate route of a Scatter-Gather

AlandtOption: A
Jun 18, 2024

ChatGPT: To minimize overall latency while joining the responses from an Inventory API and a Product Sales History API, the most idiomatic design in Mule would be: A. Call each API request in a separate route of a Scatter-Gather. The Scatter-Gather router in Mule allows multiple requests to be sent in parallel, and then it aggregates the responses. This approach reduces the overall latency because the calls to the APIs are made concurrently rather than sequentially.