Replies: 1 comment 1 reply
-
https://github.com/edenhill/librdkafka/wiki/FAQ#how-are-partitions-fetched I recommend you create 5 separate consumer instances, one for each processing thread, and have them use the same group.id. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have topic with T with 20 partitions but I have only one sever to deploy my consumer . I.e. single consumer in my consumer group. To overcome this I created some 5 threads and calling the consume method thinking that it’s going to read from 5 different partitions assuming each thread as consumer . However my 5 threads are reading from one partition and why so ? . How the librdkafka determine single consumer vs multiple consumer . How can I achieve the parallelism without increasing my infrastructure?
by the way I didn’t change my consumer portion assignment I.e by default it’s range,round robin . Is it anything related to this partition assignment . Some one please look into this and provide some solution ?
Beta Was this translation helpful? Give feedback.
All reactions