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

Add extension methods for DependentProducerBuilder #33

Merged
merged 1 commit into from Oct 4, 2019

Conversation

dstelljes
Copy link
Member

Resolves #30.

@ClementeGao
Copy link

hi @dstelljes May I ask you a few questions?
What is the role of DependentProducerBuilder?
What is the difference between DependentProducerBuilder and ProducerBuilder?
When to use DependentProducerBuilder?

@dstelljes
Copy link
Member Author

DependentProducerBuilder allows you to pass in an existing client handle: https://github.com/confluentinc/confluent-kafka-dotnet/blob/v2.3.0/src/Confluent.Kafka/DependentProducerBuilder.cs#L58-L66

This can be useful if you want to use the same underlying client with multiple .NET producers. For instance, say you have IProducer<string, Event1> and IProducer<string, Event2> producing to the same topic; sharing a handle enables the client to batch messages from both even though the types differ.

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.

None yet

2 participants