Highly Available Queues
2016-06-05 23:06
495 查看
Highly Available Queues
By default, queues within a RabbitMQ cluster are located on a single node (the node on which they were first declared). This is in contrast to exchanges and bindings, which can always be considered to be on all nodes. Queues can optionallybe made mirrored across multiple nodes. Each mirrored queue consists of one masterand one or more slaves, with the oldest slave being promoted to the new master if the old master disappears for any reason.
Messages published to the queue are replicated to all slaves. Consumers are connected to the master regardless of which node they connect to, with slaves dropping messages that have been acknowledged at the master. Queue mirroring therefore
enhances availability, but does not distribute load across nodes (all participating nodes each do all the work).
This solution requires a RabbitMQ cluster, which means that it will not cope seamlessly with network partitions within the cluster and, for that reason, is not recommended for use across a WAN (though of course, clients can still connect
from as near and as far as needed).
相关文章推荐
- CSU 1515 Sequence (莫队算法)
- 前台模块化RequireJS+anjularJS的实战应用(三)---- 部署到手机
- SnackDown Longest Increasing Subsequences 构造题
- [javaSE] GUI(事件监听机制)
- RequestDispater
- vue简单使用
- 1152 - 4 Values whose Sum is 0
- HDU 4746 Mophues(有趣的前缀和/莫比乌斯反演)
- 《面向对象程序设计》六 GUI
- [GitHub]第七讲:GitHub issues
- xcode 不值钱的动画UIButton
- EasyUI中tree的使用
- HDU 5057 Argestes and Sequence (离线树状数组 || 分块)
- UISegmentedControl的使用
- Android错误之--Warning:Gradle version 2.10 is required. Current version is 2.8.
- ios学习笔记——UIImagePickerController
- Picasso入门教程(十一)Influencing Image Cache(影响图片缓存)
- 队列同步器AbstractQueueSynchronizer
- 【Android】UI设计之界面布局
- 1605 - Building for UN