-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
proposal: create AdminClient interface #1048
Comments
Something like this makes a lot of sense to me, 👍. My question is around how this interacts with |
Having just read what I wrote here, I'm also wondering if we can stay away from |
Thanks for coming up with a proposal. It looks good overall. Just a few comments:
|
@eapache — I agree with the notion that we probably want to draw a clear line of separation from the Client. Otherwise we might get obliged to do (potentially complex?) book keeping. Also, I guess most are willing to accept that since AFAIK other administrative endpoints have no direct interactions with the producing/consuming clients (i.e. if you use the Java equivalent). As a consequence I guess we should not even provide a +1 on the
@mimaison — agree that would be nice for symmetry. Looking at the Java versions both
Both very good points. And I would say that the (complexity of the) error return is very much related to whether you touch one or more resources simultaneously — if it's singular we could just return one error and the signature becomes pretty straightforward — if it's more than one we need to do the error separation and the input signature also becomes slightly more involved. My thinking with principally suggesting singular was that if you e.g. want to create multiple topics in a go — then you are not far off from using the raw messages (the only thing you need to recognize is that you need to direct some of the operations to the coordinator). Would it be too much to have both |
Now that we have almost all of the administrative messages in place (and one in the pipeline #1027) and the updated
Metadata
-message for finding the coordinator as a PR as necessitated by some requests (#1047) — a natural next step would be to provide some higher level interfaces (as requested in e.g. #1039).I therefore propose a new
AdminClient
interface, with a draft looking something like below. It could potentially be split up into smaller units if that makes sense for increased composability.cc @Mongey @mimaison @ongardie-ebay @chandradeepak
The text was updated successfully, but these errors were encountered: