Replies: 3 comments 4 replies
-
Hi @ginjo I'm just curious but are you querying RPC from a remote host or on the localhost (default behaviour)? In any case I forked the main repo and created https://github.com/rdica/jamulus/tree/rpc-getclientcount which adds the RPC method
Also attaching patch file for same. rpc-getclientcount-20260615.patch.gz @ann0see I don't expect my code to be a submission for inclusion as it duplicates |
Beta Was this translation helpful? Give feedback.
-
@rdica , thanks! Yes, my service queries the Jamulus servers remotely. It's all within a private cloud network, but the connections/queries can be across the globe. While reducing unnecessary network traffic is part of this issue, my main concern is minimizing demand on the Jamulus Server's resources. That said, I have no idea how Jamulus Server's performance is affected by queries for client lists. I haven't had the opportunity to set up a benchmarking test for this scenario, so it's possible this could be a non issue 😊 I'll give your fork/patch a spin, thanks for taking the time to work that up! |
Beta Was this translation helpful? Give feedback.
-
Maybe just a idea |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I run a service that manages the full lifecycle of Jamulus Server instances for clients. The JSON-RPC interface is a great help in keeping track of our client's server state(s). Unfortunately, there doesn't appear to be a way to query the server connected-client-count without also getting the full list of clients. This means remotely querying for client count could be a potentially expensive operation, just to get a single integer, especially if running with any short term frequency on servers with high client counts.
So in addition to
jamulusserver/getClients
, I'd love to see ajamulusserver/getClientCount
that simply returnsresult.connections <integer>
. This would help us reduce demand on the Jamulus Servers, the network, and our own server infrastructure. Another option could be a filter expression passed to the server with the RPC request, limiting the objects/fields of the response data. Either would be fine.Beta Was this translation helpful? Give feedback.
All reactions