RabbitMQ - federated queues Vs exchange federation

后端 未结 1 1872
悲哀的现实
悲哀的现实 2021-01-27 16:31

I have set up a rabbit cluster and I publish messages into a fanout exchange every time something changes in a database.

I have dedicated queues bound to this exchange

1条回答
  •  情歌与酒
    2021-01-27 17:05

    As long as you manage permissions properly, the final decision is up to you. You can give a try to all variants first and find what will fit your actual needs.

    Having local queue may have it pros and cons: it allows end-user to survive some outage with their infrastructure or network issue at the cost of your disk/memory, however, you may limit queue length and/or size.

    I'd suggest you to take a look at Shovel plugin and Dynamic shovels. With local queue it may server a good job.

    Comparing to federation, shovel is much simpler, e.g. it doesn't sync content between upstream and downstream but simply moves message from one queue to another in a reliable manner. As long as you don't need what federation provides, shovel could be a good choice.

    Also, you may find this q/a useful (however, it might be a bit outdated) - https://stackoverflow.com/a/19357272.

    0 讨论(0)
提交回复
热议问题