简体   繁体   中英

Spring listener concurrentConsumers for an MQ queue

I am new to Spring listener JMS events from MQ.

Will there be problems in application performance if JMS concurrentConsumers value is used as the default value which is "1"

What factors to consider in finding the ideal value for the concurrentConsumers for an application

As far as I know, setting the value to 1 means you only have one consumer. In other words, it is not multi-threaded in terms of processing the messages arriving at the queue.

What value to set depends on your requirements. You can do a performance test to see the difference.

BTW, I'm new to Spring JMS too. Just built a JMS application in Spring.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM