-
Notifications
You must be signed in to change notification settings - Fork 90
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 custom partitioner in the producer? #211
Comments
Actually, you're free to implement your customized |
However, it does not work as RdKafka::Conf* conf = RdKafka::Conf::create(RdKafka::Conf::CONF_GLOBAL); In this way, the number of partitions of the target topic is provided by library itself (Java version uses a similar mechanism). On the other hand, using the ProducerRecord, I have to fetch topics metada in order to provide that information. |
That's a good point! |
@kenneth-jia That is the reason I want to add this feature. I want to use the same idea used for "stats_cb", but for "partitioner_cb". However, before to develop it, I wanted to ask if you, as dev & maintainer, suggest another path. |
Currently, there is not way to add a custom partitioner using modern-cpp-kafka. What should I do in order to add this feature? Or Is there any release where this feature is available?
The text was updated successfully, but these errors were encountered: