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

describe only filtered topics #629

Merged
merged 1 commit into from
Mar 9, 2021

Conversation

alozano3
Copy link
Contributor

@alozano3 alozano3 commented Mar 9, 2021

Hi, this code aims to improve the efficiency of the requests that retrieve topics information.
The old behaviour was to call kafkaWrapper.describeTopics and kafkaWrapper.describeTopicsOffsets methods and then filter the results with topic regex and then add the filtered results to the UI.

The proposed logic is to first filter the topic list with the regexp, and then call the mtehods kafkaWrapper.describeTopics and kafkaWrapper.describeTopicsOffsets. That way, several requests are saved, and at the same time, I consider it is more secure because information of topics not available is not requested.

@tchiotludo tchiotludo merged commit d46f2e1 into tchiotludo:dev Mar 9, 2021
@tchiotludo
Copy link
Owner

Nice catch, thanks 👍

@alozano3 alozano3 deleted the improve-efficiency-find-topics branch March 10, 2021 16:42
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.

2 participants