SimpleAmqpClient icon indicating copy to clipboard operation
SimpleAmqpClient copied to clipboard

Query Queue/Exchange bindings?

Open brentarias opened this issue 4 years ago • 0 comments

Is there a way in SimpleAmqpClient to query the existence (and definition) of bindings?

I have a console app in a docker container that should wait until a different app, in a different container, has created a binding from its queue to the primary exchange. Right now I can query that with curl as follows:

curl -i -u spirion:password -H "content-type:application/json" -XGET \
https://rabbitmq.mycompany.com/api/queues/my-vm-host/my-queue/bindings

The above returns JSON I can parse to determine if the relevant binding has or has not yet been created.

I'd love to have SimpleAmqpClient offer an interface for this, if it does not.

brentarias avatar Feb 10 '21 18:02 brentarias