🎄 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 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