How to get the number of current consumers of a durable queue ?

triptesh
triptesh Member Posts: 27

Hi, is there any native API (Java, NodeJS, GoLang) by which we can get the number of current consumers of a durable queue ?

one way is to use SEMP API ("GET /msgVpns/{msgVpnName}/queues/{queueName}/txFlows").

We are looking if there way way to do the similar task using some native API.

Tagged:

Answers

  • TomF
    TomF Member, Employee Posts: 412 Solace Employee

    Hi @triptesh, have you seen the SEMP over message bus feature? It enables you to send query commands over the messaging interface. The commands are SEMP format, but sent using any of the native APIs.

  • triptesh
    triptesh Member Posts: 27

    Hi @TomF , actually we don't want to give consumers (kubernetes pods for our use case) SEMP access.

  • TomF
    TomF Member, Employee Posts: 412 Solace Employee

    @triptesh SEMP over message bus gives read access only.