How to get the number of current consumers using SEMP V2
Hi,
We're trying to find out how to retrieve the current number of queue consumers (TCP sessions) using the SEMP V2 API. The response of "GET SEMP/v2/monitor/msgVpns/{msgVpnName}/queues/{queueName}" does not contain this.
Thank you
Best Answer
-
Hi @sjaak -
The number of consumers and details about the conumsers can be obtained via the txFlows sub resource of the Queue API."GET /msgVpns/{msgVpnName}/queues/{queueName}/txFlows"
(https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/monitor/index.html#/queue/getMsgVpnQueueTxFlows)The return value is an array with one entry per consumer flow, i.e. the length of the array is equal to the number of consumers (Queue Transmit Flows are used by clients to consume Guaranteed messages from a Queue).
0
Answers
-
Hi @sjaak -
The number of consumers and details about the conumsers can be obtained via the txFlows sub resource of the Queue API."GET /msgVpns/{msgVpnName}/queues/{queueName}/txFlows"
(https://docs.solace.com/API-Developer-Online-Ref-Documentation/swagger-ui/monitor/index.html#/queue/getMsgVpnQueueTxFlows)The return value is an array with one entry per consumer flow, i.e. the length of the array is equal to the number of consumers (Queue Transmit Flows are used by clients to consume Guaranteed messages from a Queue).
0 -
I just quickly looked through the
monitor
andconfig
sections of the SEMPv2 API, and am surprised that just regular (current) "bind count" doesn't seem to be in there. I don't think you should have to get an array of flow objects to just get the count, especially since it's there in SEMPv1.0 -
Thanks for the updates @swenhelge and @Aaron. We have look!
0 -
@Huib Nieuwenhuijsen Check out this thread.
0