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

[Feature Request]: Abstract Kafka configuration builders so that consumers can insert custom logic #623

Open
robertcoltheart opened this issue Feb 14, 2025 · 0 comments · May be fixed by #624
Labels
enhancement New feature or request

Comments

@robertcoltheart
Copy link
Contributor

robertcoltheart commented Feb 14, 2025

Is your request related to a problem you have?

One thing that would really help us out is to be able to build an in-memory Kafka broker, while keeping as much of the "metal" of KafkaFlow as possible. This isn't possible at the moment with the way the code connects to the Confluent producer/consumer builders.

Describe the solution you'd like

The ideal entry point for this is the IConsumer<TKey, TValue> and IProducer<TKey, TValue> interfaces, but these are being directly created in code. A simple solution would be to abstract these away in public builder interfaces that can be overridden in the DI container if desired.

I don't think we need config support here, as in, this is a very advanced scenario that probably doesn't need to be included in the configuration builders at this stage.

Are you able to help bring it to life and contribute with a Pull Request?

Yes

Additional context

No response

@robertcoltheart robertcoltheart added the enhancement New feature or request label Feb 14, 2025
@robertcoltheart robertcoltheart linked a pull request Feb 14, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

1 participant