TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you manage RabbitMQ queues/exchanges?

3 点作者 humble_dev大约 7 年前
I am looking for the best practises around managing RabbitMQ changes&#x2F;configuration.<p>In my current micro-services&#x2F;worker based architecture I have:<p>* many publisher that publish to exchanges, these exchanges are linked to one or more queues. * Each worker has it&#x27;s own queue that is later bind to the exchange.<p>The goal is that publisher and workers do not know anything about each other or where message goes to.<p>I saw that many people put a configuration for Exchanges&#x2F;Queues in the code, but then a worker depends on the created exchange. That means I need to deploy publisher first. Otherwise worker won&#x27;t be able to bind the queue to the exchange if it won&#x27;t be created. The other solution is to manually bind the exchanges with the queues after the deployment but I would rather have everything automated. I wonder what are the best practises around that subject.

1 comment

takounayc大约 7 年前
You can check the answer of this question in here: <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;29979360&#x2F;purpose-of-declaring-an-exchange-on-a-rabbitmq-consumer" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;29979360&#x2F;purpose-of-decl...</a>