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: consumer custom partition assigner #731

Closed
6 of 7 tasks
niamster opened this issue Jan 18, 2022 · 5 comments
Closed
6 of 7 tasks

Feature Request: consumer custom partition assigner #731

niamster opened this issue Jan 18, 2022 · 5 comments

Comments

@niamster
Copy link

niamster commented Jan 18, 2022

Description

Are there any plans to implement custom consumer assignor strategy (similar to what Sarama implements here)?
Are there any blockers?

How to reproduce

N/A

Checklist

Please provide the following information:

  • confluent-kafka-go and librdkafka version (LibraryVersion()): Any
  • Apache Kafka broker version: N/A
  • Client configuration: N/A
  • Operating system: N/A
  • Provide client logs (with "debug": ".." as necessary): N/A
  • Provide broker log excerpts: N/A
  • Critical issue
@edenhill
Copy link
Contributor

There are no immediate such plans, and we typically recommend to use the builtin partitioners as much as possible since they are compatible with partitioners in other languages (e.g., murmur2_random is compatible with the default Apache Kafka java producer partitioner).

@niamster
Copy link
Author

Hi @edenhill . Thank you for the prompt reply. In this card I'm talking about the consumer assigner, I'm sorry I was not clear (I will update the card description).
My use case: sometimes, due to the user data submission patters, the partitions are not equally balanced from the consumers point of view, and to achieve better load distribution I would like to have a custom partition assignment strategy based on custom heuristic (for example CPU load).

@niamster niamster changed the title Feature Request: custom partition assigner Feature Request: consumer custom partition assigner Jan 19, 2022
@edenhill
Copy link
Contributor

Oh sorry, that's my bad.

We don't have any immediate plans for that either, it is a niche use-case and requires a lot of work both in librdkafka and confluent-kafka-go.

@niamster
Copy link
Author

Ok, thanks for the confirmation!

@niamster
Copy link
Author

Found a sibling confluentinc/librdkafka#2284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants