-
Notifications
You must be signed in to change notification settings - Fork 337
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 topic API #530
Describe topic API #530
Conversation
I'll wait for this pull request #533 to be merged to resue |
What is the use case for adding this API? |
@dasch The main purpose of this pull request is to introduce DescribeConfigs API, and later AlterConfigs API. This API is powerful for Kafka administration or operation since it provides full information like From recent pull requests and your todo in github project, I assume that the 0.6.x provide support some interfaces / APIs for administrations. I think this would fulfill the goal of the next version. Or am I missing something? |
7737bcb
to
6d38e32
Compare
I'm mostly thinking: what concrete tool would use this API? I'm wary of introducing something like this without knowing how it will be used. Once an API is there it's difficult to change, so I'd like to consider use cases before adding more. |
@dasch Ah, about the concrete use case, it's almost for debugging and monitoring. I'm working on multiple Kafka clusters and even in the same cluster, each topic has a different set of configurations. So, the need of fetching, updating and syncing configurations between different environments or clusters usually pop up. It would be pretty nice and helpful if those could be handled programmatically via the client interfaces (like Java / Golang clients also supported this). That's my use case. I would admit that this need is non-trivial and not sure about the usabilities of others too. 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to mark this is alpha, since the API may change, but I'm 👍
Proposed solution:
Since we are following simple approach for the users, the admin API for topic description is quite simple:
The underlying API is DescribeConfigs API. Currently, there is only one interface
describe_topic
but in future, it is easy to pretty easy to add other similar interfaces to support other resource types.