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

Enable injecting custom partition assignor #29

Open
vertexclique opened this issue Apr 1, 2022 · 0 comments
Open

Enable injecting custom partition assignor #29

vertexclique opened this issue Apr 1, 2022 · 0 comments
Labels
enhancement New feature or request Nightmare Hardcore features or bugs to deal with.

Comments

@vertexclique
Copy link
Collaborator

vertexclique commented Apr 1, 2022

This one is little bit tricky.
You need to inject custom partition assignor as raw pointer allocated on heap by using the implementaion of this trait: https://docs.rs/rdkafka/latest/rdkafka/consumer/trait.ConsumerContext.html
need to make it inside a object allocated on heap and injected into here:
https://github.com/vertexclique/callysto/blob/625f38587d3c0695c116b8c3662c74bbb2db7704/src/kafka/enums.rs#L56

HOW

How I will make it inside an Box<dyn ConsumerContext>? What I need to know? What is a Box? Why Box? What does heap allocated object means? What is dyn?
@ansrivas can help you on this.

@vertexclique vertexclique added enhancement New feature or request Nightmare Hardcore features or bugs to deal with. labels Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Nightmare Hardcore features or bugs to deal with.
Projects
None yet
Development

No branches or pull requests

1 participant