A Single Channel with Multiple Consumers RabbitMQ
http://stackoverflow.com/questions/30696351/a-single-channel-with-multiple-consumers-rabbitmq
Typically the IModel.BasicConsume() registration is used to connect a single consumer through a single channel. However, the documentation is clear that multiple consumers can be registered through a single channel. For example:
The above snippet is taken from this link. The documentation goes on to clarify the disadvantage of doing this:
The disadvantage is spelled out clearly. What is missing is the explanation of why positively it may be useful to do this. Does anyone know? What is the advantage? Furthermore, there is another similar scenario to consider. Evidently it is also possible to multiply register the same consumer.
In this latter case it is actually easier to envision the advantage; it allows multiple Rabbit queues to be multiplexed into a single event stream. But if it has that advantage, why is this approach so esoteric and completely undocumented? What makes this particularly weird is that the whole idea of a
The above Q&A came from this link. If this is why So to review the two scenarios:
I'm coding in the context of .net and C#, though this question is really about RabbitMQ in general. |
最新文章
- BootLoader的架构设计
- linux下的目录结构和内容
- 【安全测试】burpsuite安装方法
- CUBRID学习笔记 9 创建示例数据库
- DBA_Oracle LogMiner分析重做和归档日志(案例)
- [学习笔记]设计模式之Abstract Factory
- 使用第三方SDK出现: duplicate symbol _llvm.cmdline in:
- JS - 图片放大器
- linux系统启动过程的列表
- sublimeserver启动本地服务器(sublime text)
- Mycat 分布式事务的实现
- [Luogu3676]小清新数据结构题
- Form 表单提交的几种方式
- 【webpack学习笔记】a01-基础构建
- JumpServer 安装配置
- PAT 乙级 1089 狼人杀 &;&; 1090 危险品装箱 (我的时间最短哦)
- 第 7 章 多主机管理 - 047 - 管理 Machine
- 剑指offer总结
- openfalcon源码分析之agent
- json格式的一些常用操作方法