Loading

How to limit the concurrency of messages processed by Anypoint MQ Connector in Mule 4

게시 일자: Mar 2, 2024
솔루션

QUESTION

Mule 3 has an option to set Max Active Threads for performance tuning. Please refer to the below documentation - 
https://docs.mulesoft.com/anypoint-mq-connector/0.3.9/anypoint-mq-connector-reference
There is no such option in mule 4 Anypoint MQ Connector. How to limit the concurrency of messages processed by Anypoint MQ Connector in Mule 4?

ANSWER

There is a way to set a max concurrency at the flow level. Please refer to the below documentation - 
https://docs.mulesoft.com/mule-runtime/4.3/tuning-backpressure-maxconcurrency
On the Anypoint MQ, Connector level tuning can be done with the prefetch size. Please refer to the below documentation - 
https://docs.mulesoft.com/anypoint-mq-connector/3.x/anypoint-mq-connector-reference#prefetch
In order to check how to configure the same please refer to the below knowledge article - 
Subscribing to Anypoint MQ one message at a time
Prefetch size and flow concurrency can be used to limit the concurrency of the messages processed by Anypoint MQ Connector.
Knowledge 기사 번호

001121446

 
로드 중
Salesforce Help | Article