Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only fetch topic data that are part of the consumer groupId (10 times faster) #1

Conversation

jorkzijlstra
Copy link
Owner

@jorkzijlstra jorkzijlstra commented Jan 31, 2022

Currently the process is fetching all topics with its offset and consumergroup data. Then it filters the topics on if it has any offsets available for the consumer group.

By any means we are discarding 99% of the data that we are fetching from Kaka. In my case the numer of topics consists of roughly 1200 and its showing maybe 9 topics with its data. Which means we are fetching data for 1191 topics that we don't need.

So instead of fetching all topic and offset data and then filtering down on the consumer groupId we now first fetch all offsets for the Consumer GroupId and construct a list of topics for which we need to fetch data.

This means we are now only fetching a fraction of the data and therefore are faster in loading the page.

Previous implementation
image

Improved implementation
image

@jorkzijlstra jorkzijlstra force-pushed the feature/consumer-group-performance-improvement branch 2 times, most recently from 2d1cf32 to 8136a73 Compare February 1, 2022 08:55
@jorkzijlstra jorkzijlstra force-pushed the feature/consumer-group-performance-improvement branch from 8136a73 to ed020d2 Compare February 1, 2022 09:01
@jorkzijlstra jorkzijlstra merged commit d5e9f0b into feature/homepage-performance-improvement Feb 1, 2022
@jorkzijlstra jorkzijlstra deleted the feature/consumer-group-performance-improvement branch February 1, 2022 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant