博客已搬家, 更好阅读体验, 猛戳 http://www.jack-yin.com/coding/translation/activemq-in-action/1800.html
13.3 Optimizing message consumers
13.3 优化消息消费者
In order to maximize application performance, you have to look at all the
participants— and as we have seen so far, consumers play a big part in the
overall performance of ActiveMQ. Message consumers typically have to work twice
as hard as message producers, because in addition to consuming messages, they
have to acknowledge that the message has been consumed. We’ll explain some of
the biggest performance gains you can get with ActiveMQ by tuning the consumers.
为了最大限度的提升应用程序的性能,你必须关注所有影响性能的因素.到目前为止,消息消费者
在整个ActiveMQ系统的性能表现中都扮演着举足轻重的角色.通常,消息消费者必须要尽量以
2倍于消息生产者的速度运行,因为消费者还要通知代理消息已经被处理了.下面我们将介绍
通过优化消息消费者你可以获取的最大的性能提升.
Typically the ActiveMQ broker will deliver messages as quickly as possible to
consumer connections. Once messages are delivered over the transport from the
ActiveMQ broker, they’re typically queued in the session associated with the
consumer, where they wait to be delivered. In the next section we’ll explain
why and how the rate at which messages are pushed to consumers is controlled,
and how to tune that rate for better throughput.
通常,ActiveMQ代理会通过消费者连接尽可能快的发送消息.通常情况下,一旦消息通过ActiveMQ代理的传输连接
发送完成之后,消息就加入了与消费者关联的session队列中,并等待分发.在下一节中,我们将解释消息发送给消费者
的速度为何可控以及如何控制,同时还将阐述如何调整这个消息发送速率已获取更好的吞吐量.
..................
博客已搬家, 更好阅读体验, 猛戳 http://www.jack-yin.com/coding/translation/activemq-in-action/1800.html