🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

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.