当来自 RabbitMQ 的交换 added/removed 时收到通知?

Notified when an exchange is added/removed from RabbitMQ?

是否可以在 RabbitMQ 中添加和删除交换时以某种方式收到通知?我想在有兴趣知道这一点的远程机器上有一个 "client",最好不使用轮询。这样做的原因是订阅 RabbitMQ 中的所有消息(从而让客户端为每个新交换创建一个新队列)以持久保存消息。

RabbitMQ Event Exchange 个插件,其中:

declares a topic exchange called 'amq.rabbitmq.event' in the default virtual host. All events are published to this exchange with routing keys like 'exchange.created', 'binding.deleted' etc, so you can subscribe to only the events you're interested in.

您对 exchange.createdexchange.deleted 感兴趣。

然后在客户端上您可以调用 basic.consume 并获得您感兴趣的内容。