Multiple consumer one queue

白昼怎懂夜的黑 提交于 2019-12-12 09:59:23

问题


Is it possible to make multiple consumers to share one single queue in RabbitMQ? I am currently using this php library to work with RabbitMQ, from what I observe, although I have 2 identical instances of a consumer script running, but only one would respond to the message passed...


回答1:


If you want both consumers to see all messages, give each consumer its own (probably private) queue and bind them both to the same exchange.



来源:https://stackoverflow.com/questions/1831705/multiple-consumer-one-queue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!