rabbitmq默认交换机
时间: 2023-08-29 16:11:07 浏览: 126
rabbitmq队列和交换机的实现
默认交换机是一个名为""(空字符串)的直连交换机。当消息被发送到默认交换机时,它会根据消息的路由键将消息路由到与该路由键名称相同的队列。如果没有与路由键名称相同的队列,则消息将被丢弃。默认交换机是非持久化的,意味着在消息代理重启后会被删除。因此,如果你希望消息在代理重启后仍然存在,则需要使用自定义的交换机,并将其声明为持久化的。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [RabbitMQ学习之交换机](https://blog.csdn.net/u010517268/article/details/104423712)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [RabbitMQ之交换机](https://blog.csdn.net/m0_53151031/article/details/123140428)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文