Skip to content
New issue

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

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

Already on GitHub? # to your account

client: allow injection of custom kafka clients #2144

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

gabriel-tincu
Copy link
Contributor

@gabriel-tincu gabriel-tincu commented Oct 20, 2020

Provide the consumer, producer and admin client with the option to
create the kafka client from a custom callable, thus allowing more
flexibility in handling certain low level errors


This change is Reviewable

@gabriel-tincu gabriel-tincu changed the title client: allow for custom kafka clients client: allow injection of custom kafka clients Oct 20, 2020
@jeffwidman
Copy link
Contributor

Related: #735

@gabriel-tincu
Copy link
Contributor Author

Related: #735

did not realize there was another PR dealing with the same issue. Should i just close this ? Will the other one get merged?

@jeffwidman
Copy link
Contributor

I think this should be kept open, at least until one of them is merged... I think both myself and @dpkp are in favor of allowing injection of custom clients, it was just never pushed across the line.

@gabriel-tincu gabriel-tincu requested a review from dpkp November 18, 2020 19:13
@gabriel-tincu gabriel-tincu force-pushed the custom-kafka-clients branch 5 times, most recently from 2d59560 to 274b169 Compare November 19, 2020 07:08
Provide the consumer, producer and admin client with the option to
create the kafka client from a custom callable, thus allowing more
flexibility in handling certain low level errors
@gabriel-tincu
Copy link
Contributor Author

Did away with the factory function, and opted for the kafka_client name, as simple client caused a conflict in one of the constructors downstream

@gabriel-tincu
Copy link
Contributor Author

@dpkp this is ready for another look, whenever you have the time

@dpkp
Copy link
Owner

dpkp commented Dec 2, 2020

Looks great -- thanks!!

@dpkp dpkp merged commit c48817e into dpkp:master Dec 2, 2020
@hackaugusto hackaugusto deleted the custom-kafka-clients branch January 11, 2021 20:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants