简体   繁体   中英

RabbitMQ : Shovel to multiple servers from one queue based on messages routing key

My Scenario :

We are using RabbitMQ for broadcasting messages to about 300 other computers in a network. We are using RabbitMQ on Windows Server, C#.Net Client (EasyNetQ)

basic solution is to assign a routingkey for each destination computer,define an exchange and bind each routingKey to one queue and define a shovel to each queue to destination server. in this condition we have 1 exchange and 300 queue and 300 shovel.

Problem Statement : maintenance and management of this amount of shovel and queue is hard and forces a more load to rabbitmq.

Question : I think there is a simple way of doing this : like define one exchange, one queue and routing based shovels(300). what solution do you recommend?

Thanks in advance.

You second solutions look better to me..
Create a topic/fanout exchange at your server and let all shovels consume from that exchange for each client.
Than you can publish message on that exchange either using broadcast strategy or you can use wildcard for routing key.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM