Iv最近一直在与春季云流Rabbitmq生产商和消费者合作。是否有约定在何处创建队列?
Should the queue be created on the consumer application
OR
Should the queue be created on the producer application
我个人在消费者方设置队列,在生产者方设置交换。 Iv在工作中得到了一些反馈,ID在您创建队列的位置并不重要,但我希望有所不同。
如果队列是在使用者中创建的,那么每次有新应用程序出现时,您都不会进行任何代码更改,只需将队列和路由键绑定到交换中即可。
这正确吗?