Salesforce Certified MuleSoft Platform Integration Architect free question 9 / 10 · Domain 8: Designing integration solutions to meet performance requirements
Under load a producer component sends messages faster than a back-end consumer can process them, and the back end suffers from high concurrency. Which parameter controls this at the flow?
- The maxRedeliveryCount parameter, which limits the number of deliveries of the same message from a source
- The maxConcurrency parameter, which limits the number of concurrent messages that the flow processes
- The maxRetries parameter, which limits the number of retries that the flow attempts
- The blockSize parameter, which limits the number of records that the flow reads at once
Show the answer and explanation
Answer: B
Why this is correct
The page explains that under heavy load Mule may not immediately have the resources to process an event, for example when all threads are busy and the flow’s concurrency is exceeded, and that Mule then logs that the flow is unable to accept new events, which is known as back-pressure. When a producer outputs information faster than a consumer can process it, you can use the maxConcurrency parameter to set the maximum number of concurrent messages that a flow can process at any given time. It is especially helpful when a back-end server is affected by high concurrency.
Why the other options are wrong
"The maxRetries parameter, which limits the number of retries that the flow attempts" … maxRetries belongs to Until Successful. It does not limit concurrency.
"The blockSize parameter, which limits the number of records that the flow reads at once" … blockSize is a batch job setting for the size of record blocks. It does not limit the concurrent messages of a flow.
"The maxRedeliveryCount parameter, which limits the number of deliveries of the same message from a source" … maxRedeliveryCount belongs to the redelivery policy. It deals with failing messages, not with concurrency.
Key points
Use maxConcurrency to throttle a flow when the back end cannot cope with the concurrency.