简体   繁体   English

MQ队列的Spring侦听器currentConsumerConsumers

[英]Spring listener concurrentConsumers for an MQ queue

I am new to Spring listener JMS events from MQ. 我是MQ的Spring侦听器JMS事件的新手。

Will there be problems in application performance if JMS concurrentConsumers value is used as the default value which is "1" 如果将JMS parallelConsumers值用作默认值“ 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. 据我所知,将该值设置为1意味着您只有一个消费者。 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. 顺便说一句,我也是Spring JMS的新手。 Just built a JMS application in Spring. 刚刚在Spring中构建了一个JMS应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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