Câu 4: Certified Mulesoft Platform Integration Architect
A Mule solution implements an Experience API and System API as Mule applications that process messages in this order:1. The Experience API receives a request Anypoint MQ message (REQU) with a payload containing a variable-length list of request objects.2. The Experience API uses a For Each scope to split the list into…
Nội dung câu hỏi
A Mule solution implements an Experience API and System API as Mule applications that process messages in this order:1. The Experience API receives a request Anypoint MQ message (REQU) with a payload containing a variable-length list of request objects.2. The Experience API uses a For Each scope to split the list into individual objects and sends each object as a REQU_OBJECT message to an Anypoint MQ queue named REQUEST3. The System API listens on the REQUEST queue, processes each message independently of all other messages, and sends a response message to a response queue named RESPONSE_OBJECT. The System API processing times can vary and are occasionally fairly long.4. The Experience API listens on the RESPONSE_OBJECT queue and receives, transforms, and accumulates each response.5. After receiving all the responses corresponding to the original REQU message, the Experience API creates and publishes a response Anypoint MQ message (RESP) to an Anypoint MQ queue named RESPONSE with a payload containing the list of responses returned by the System API, organized in the same order as the request objects originally sent in the REQU message. Assume successful response messages are returned by Experience API to the RESPONSE queue for all REQU messages. What is required so the Experience API can ensure the length and order of the list of objects in RESP and REQU match, while at the same time maximizing message throughput?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. After the For Each scope, add a second For Each scope configured with a persistent object store to collect response messages in the order in which they arrive, and then send the RESP message using this list of responses.
- B. Use a persistent object store to keep track of the list length and all object indexes in the REQU message, both in the For Each scope and in all communication involving the System API. Set the maxConcurrency parameter for the receiving flow in the Experience API to a value greater than 1. — đáp án hiện tại
- C. Use a Scatter-Gather within the For Each scope to ensure response message orderConfigure the Scatter-Gather with a persistent object store.
- D. Perform all communication involving the System API synchronously from within the For Each scope so that responses in RESPONSE_OBJECT are in the exact same order as request objects in the RESP message.Within the For Each scope, use an Async scope configured with a persistent object store.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.