开发者

RabbitMQ: similar queues in different exchanges

开发者 https://www.devze.com 2023-03-07 22:06 出处:网络
Can I have two queues with the same name and same ro开发者_运维问答utingKey yet each bound to another exchange?You can\'t have two queues with the same name at all, (well you can if they\'re in differ

Can I have two queues with the same name and same ro开发者_运维问答utingKey yet each bound to another exchange?


You can't have two queues with the same name at all, (well you can if they're in different virtual hosts but I don't think that's what you're talking about).

However, you can bind one queue to many exchanges, or to one exchange with many routing keys. If you're aiming to have a single consumer pick up messages from several exchanges, that's what you want to do.


You can't do that, unless those queues are in different vhosts.

0

精彩评论

暂无评论...
验证码 换一张
取 消