You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
What is the most efficient way to count total user sessions?
#42748
In order to get a count of the current number of total sessions, we're currently calling the /client-session-stats endpoint and adding up all of the results from each client's count. E.g.
We have noticed that the request can take several seconds on the server side if there are 10's or 100's of thousands of sessions.
Is there a better way to count total user sessions? We can do this as an extension, so I'm curious if anyone has found a better way, either with the Admin API, some internal interface, either for Keycloak or Infinispan?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
In order to get a count of the current number of total sessions, we're currently calling the
/client-session-statsendpoint and adding up all of the results from each client's count. E.g.We have noticed that the request can take several seconds on the server side if there are 10's or 100's of thousands of sessions.
Is there a better way to count total user sessions? We can do this as an extension, so I'm curious if anyone has found a better way, either with the Admin API, some internal interface, either for Keycloak or Infinispan?
All reactions