RabbitMQ - Federated Queues with Exchange Federation

I created a cluster of rabbits, and I posted a fan swap message every time something changed in the database.

I have dedicated queues associated with this exchange for some of my microservices that consume these updates, and I also initially set up a dedicated queue for an external client so that they can combine it with their own rabbit infrastructure and consume a copy of each message.

Now I am wondering if using the opportunity to exchange federation, rather than creating a new dedicated queue for each new external consumer, would be a better approach, as more and more users will come.

What are the pros and cons?

thanks

0
rabbitmq rabbitmq-exchange rabbitmq-federation
source share
1 answer

As long as you manage permissions correctly, the final decision is up to you. First, you can try all the options and find one that suits your actual needs.

Having a local queue can have pros and cons: it allows end users to survive some failures with their infrastructure or network problem due to your disk / memory, however you can limit the queue length and / or size.

I would advise you to take a look at the smooth fin and Dynamic shovels . In a local queue, it may work well.

Comparing with the federation, a shovel is much simpler, for example. it does not synchronize content between the upstream and downstream, but simply transfers the message from one queue to another in a reliable manner. As long as you don't need any federation, a shovel may be a good choice.

Also, you may find this q / a useful (however it may be a bit dated) - stack overflow site/questions/151836 / ....

+1
source share

All Articles