javascript 在RabbitMQ中列出绑定到交换的所有队列

dzhpxtsq  于 2023-10-14  发布在  Java
关注(0)|答案(1)|浏览(110)

我在JavaScript和node.js中使用amqllib,我想列出绑定到特定交易所的所有队列。什么是最好的水做到这一点?

o8x7eapl

o8x7eapl1#

您可能需要使用HTTP API来执行此操作。
具体而言,这些终点中的一个或两个:

  1. /api/exchanges/vhost/name/bindings/source A list of all bindings in which a given exchange is the source.
  2. /api/exchanges/vhost/name/bindings/destination A list of all bindings in which a given exchange is the destination.

相关问题