jms producer performance with spring

后端 未结 4 1745
执念已碎
执念已碎 2021-01-31 18:47

i created a simple producer consumer simulation based on spring, jms and activemq, i\'m trying to reach high performance from both sides, producers and consumers,

Connec

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-31 19:32

    Sorry if this answer comes to late to help the original poster. I recently investigated JmsTemplate performance. Even with the same delivery and acknowledgment modes, native JMS code seemed much faster than JmsTemplate. The problem turned out to be that ActiveMQ normally defaults to async sending, but when you use JmsTemplate it instead uses sync sending. This dramatically reduces performance. You can set ActiveMQConnectionFactory's useAsyncSend property to true to force async sending. More details here: JmsTemplate is not evil

提交回复
热议问题