rabbitmq / rabbitmq-federation

RabbitMQ Federation plugin
https://www.rabbitmq.com/
Other
40 stars 21 forks source link

Multiple links to exchange in cluster. #27

Closed hairyhum closed 3 years ago

hairyhum commented 8 years ago

If there are federation between clusters it should be possible to create multiple links to single exchange in cluster, for load balancing purpose. Example situation: multiple upstreams and clustered downstream.

----------    
| UP 1   |__________________________________
| EX foo |                                  |
----------                                  |
                                            |
----------                                  |
| UP 2   |_______________________           |   
| EX foo |                      |           |
----------                      |           |
                                |           |
----------                      |           |
| UP 3   |____________          |           |
| EX foo |           |          |           |
----------           |          |           |
                     |          |           |
                ----------------------------------
                | DOWN_1   | DOWN_1   | DOWN_3   |
                | EX_F foo | EX_F foo | EX_F foo |
                ----------------------------------
                |            EX foo              |
                ----------------------------------

Related to #24 See mailing list thread https://groups.google.com/forum/#!msg/rabbitmq-users/KXiD29pLD0o/oAsTf4PICwAJ

michaelklishin commented 8 years ago

This means we can no longer guarantee ordering. If we end up implementing this, this should be written all over it in the docs.

hairyhum commented 8 years ago

In this specific case there is no ordering anyway, since there are several upstreams. But I agree that this is not much safe behaviour and maybe need some more restrictions.