feat(groups): improve consumer groups loading #1889
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a dropdown list on the topic screen/consumer groups tab to allow people selecting "Hide empty consumer groups".
This option fixes issues on this screen with cluster containing a lot of consumer groups because we were looping over all the consumer groups and requesting the cluster for their offsets to find the right topics.
Ignoring empty consumer groups allows AKHQ to give the response quickly because we will search for the topic directly in the member assignation instead of having also the check in the groups offsets (for empty consumer groups)
Same issue as the previous one, with a lot of consumer groups, the consumer groups column in the topic list table takes a lot of time to show the result (when you don't reach a timeout).
By reusing the new "Consumer Groups Default View", AKHQ will now be able to show the active consumer groups quickly
On a cluster with 1500+ consumer groups, it allows us to finally see (at least) the active groups in few seconds