`

13.2 优化消息生产者

阅读更多

博客已搬家, 更好阅读体验, 猛戳 http://www.jack-yin.com/coding/translation/activemq-in-action/1797.html

 

13.2 Optimizing message producers

13.2 优化消息生产者

 

The rate at which producers send  messages to an ActiveMQ message broker  before

they’re dispatched to consumers is a fundamental element of overall application

performance. We’ll now cover some tuning parameters that affect the  throughput

and latency of messages sent from a message producer to an ActiveMQ broker.

 

在代理分发消息到消息消费者之前,消息生产者发送消息到代理的效率是影响整个应用程序性能

的基本元素.下面我们将关注几个消息生产者发送消息给代理时,影响消息吞吐量和消息发送延迟

的调优参数.

 

13.2.1 Asynchronous send

13.2.1 异步发送

 

We’ve already covered  the performance gains  that can be  achieved if you  use

nonpersistent  delivery  for  messages. In  ActiveMQ  nonpersistent  delivery is

reliable, in that delivery of  messages will survive network outages  and system

crashes (as long as the producer is active—it holds messages for redelivery  in

its failover transport cache).  But you can also  get the same performance  gain

for persistent  messages by  setting the  useAsyncSend property  on the  message

producer’s connection factory, as shown next.

 

我们已经了解了使用非持久化消息分发可以带来性能提升.ActiveMQ中非持久化消息分发是可靠的,

因为消息会在网络故障和系统崩溃(只要消息生产者依然是活动的--此时消息生产者将消息缓存在失效

转移连接器的缓存中)中幸存下来.但是,通过设置消息生产者的连接工厂的useAsyncSend属性,你仍然

可以在使用持久化消息时获得性能提升,请看下面示例代码:

 

.......................

博客已搬家, 更好阅读体验, 猛戳 http://www.jack-yin.com/coding/translation/activemq-in-action/1797.html

0
1
分享到:
评论

相关推荐

    Java优化编程(第2版)

    9.5 优化消息目的地destination及消息生产者与消费者 9.6 优化消息对象及合理使用事务机制 9.7 影响jms性能的其他因素 小结 …… 第12章 java多线程技术与应用性能优化 12.1 java多线程技术 12.1.1 进程与线程 ...

    《UNIX网络编程 第2版. 第2卷, 进程间通信(中文版)》(W·Richard Stevens[美] 著)

    10.10 多个生产者,多个消费者 196 10.11 多个缓冲区 199 10.12 进程间共享信号量 205 10.13 信号量限制 206 10.14 使用FIFO实现信号量 206 10.15 使用内存映射I/O实现信号量 210 10.16 使用System V信号量实现Posix...

    UNIX网络编程 第2卷 进程间通信

    10.10 多个生产者,多个消费者 196 10.11 多个缓冲区 199 10.12 进程间共享信号量 205 10.13 信号量限制 206 10.14 使用FIFO实现信号量 206 10.15 使用内存映射I/O实现信号量 210 10.16 使用System V信号量实现Posix...

    并行计算导论(原书第2版).[美]Ananth Grama(带详细书签).pdf

    3.6.5 流水线模型或生产者-消费者模型 3.6.6 混合模型 3.7 书目评注 习题 第4章 基本通信操作 4.1 一对多广播以及多对一归约 4.1.1 环或线性阵列 4.1.2 格网 4.1.3 超立方体 4.1.4 平衡二叉树 4.1.5 算法...

    SAP R/3 事务码速查手册SAP R/3 事务码速查手册

    8.10.1 LO-SCI-POI 产品优化接口 206 8.11 LO-ADM 附加管理 207 9 SD-MD 销售 208 9.1.1 SD-MD 主数据 208 9.1.2 SD-MD-MM 物料维护 208 9.1.3 SD-MD-CM 条件 212 9.2 SD-BF-PR 定价和条件 212 9.2.1 SD-BF-AC 可用...

    C#微软培训资料

    13.2 索引指示器 .151 13.3 小 结 .154 第十四章 继 承 .155 14.1 C#的继承机制.155 <<page 3>> page begin==================== 14.2 多 态 性 .159 14.3 抽象与密封 .163 14.4 继承中关于属性的...

    Node与Express开发.pdf

    第 1 章 初识 Express .......................................................................................................................1 1.1 JavaScript 革命 .........................................

    JAVA核心知识点整理(有效)

    1. 目录 1. 2. 目录 .........................................................................................................................................................1 JVM ........................

Global site tag (gtag.js) - Google Analytics