博客已搬家,更好阅读体验, 猛戳 http://www.jack-yin.com/coding/translation/activemq-in-action/1749.html
12.1 Exclusive consumers
12.1 排他性消息消费者
When messages are dispatched from an ActiveMQ broker, they’ll always be in first in,
first out order. But if you have more than one message consumer for a queue in your
application(s), you can’t guarantee that the order in which the messages were dispatched
will be the same order in which your application will consume them. This is
because you never have control over the scheduling of threads used to deliver the
messages on the client side—even if all your message consumers are using the same
connection. Ideally you’d only have one message consumer to ensure ordering of
messages. But you may also need to support failover, to have another instance of your
queue message consumer take over the processing of the queue messages if the first
consumer fails. ActiveMQ can support having multiple message consumers on a
queue, but having only one of them receive the messages from that queue. We’ll discuss
this concept in the following subsection.
ActiveMQ代理总是以先进先出的方式转发消息.但是,如果你程序的一个队列中有多个消息消费者,
你就无法保证程序按照代理发送消息的顺序来处理消息.这是因为在客户端,即使你的消息消费者都使
用同一个连接,你也无法控制用于调度消息发送的线程.理想情况是你只使用一个消费者以保证处理
消息的顺序.但是,你可能还需要支持失效转移,支持在第一个消息消费者失效后,使用队列的另外一个
消息消费者实例来接管第一个小消费者.ActiveMQ支持一个消息队列拥有多个消息消费者,但是仅有
一个消费者会从代理接收消息.我们将在下面的小节中阐述这个概念.
12.1.1 Selecting an exclusive message consumer
12.1.1 选择一个排他的的消息消费者
.........................
相关推荐
商业贸易行业跟踪报告:6月社零同比+12.1%,线上消费快速增长.pdf
最新版Quartus ii 12.1用户手册
( EasyPHP v12.1
Navicat12.1简体中文版
Xcode 不升级支持真机运行12.1版本信息,具体操作参照我的博客https://mp.csdn.net/postedit/52624583
cam350 12.1中文官方破解版安装破解方法: 1. 下载 CAM350 12.1破解版到本地磁盘并解压缩 2. 双击“DownStream_2015_c1022_b1122”进行安装 3. 在“Select Installation Option”选项对话框选择“Install ...
Olive12.1R1.9.part005.rar
quartus12.1的破解文件,亲自试验过可以用
xocde 12.1 真机安装包,https://blog.csdn.net/u010742414/article/details/79900281
Quartus12.1 破解license
12.1sp1quartus、12.1sp1modelsim_ae和12.1sp1dsp_builder的成功安装
quartus 12.1sp1 破/解 crack
altera_12.1sp1,开发工具,用于开发,FPGA
ojdbc6-12.1.0.2.0.jar,ojdbc6-12.1.0.2.0.jar,ojdbc6-12.1.0.2.0.jar驱动包文件
xilinx ISE 12.1 lincense
K3V12.1标准版CRM解决方案 K3V12.1标准版CRM解决方案 K3V12.1标准版CRM解决方案
windchill12.1.0.0 安装
ISE12.1教程
用友U8+V12.1产品发版说明 2015年7月20日上市销售,内容是新版本功能结构以及新增功能介绍。 以下是目录: U8+V12.1产品发版说明 U8研发中心 目 录 U8+V12.1产品发版说明 1 一、产品概述 8 二、产品范围及新业务特性...
oracle instantclient12.1