QuestionQ58
VerifiedMuleSoft application network conceptsA Mule solution implements an Experience API and a System API as Mule applications that process messages in this sequence:
- The Experience API receives an Anypoint MQ request message (REQU) whose payload contains a variable-length list of request objects.
- The Experience API uses a For Each scope to split the list into individual objects and sends every object as a REQU_OBJECT message to an Anypoint MQ queue named REQUEST.
- The System API listens on the REQUEST queue, processes every message independently of all other messages, and sends a response message to a response queue named RESPONSE_OBJECT. System API processing times can vary and are occasionally fairly long.
- The Experience API listens on the RESPONSE_OBJECT queue and receives, transforms, and accumulates each response.
- After it receives all 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. Its payload contains 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 that the Experience API returns successful response messages to the RESPONSE queue for all REQU messages.
What is required for the Experience API to ensure that the object-list length and order in RESP and REQU match while also maximizing message throughput?
Community Discussion