I have a conceptual issue with Kafka.
We have many machines acting as consumers on one topic with many partitions. These machines run on different hardware setups and there will be consumers with higher throughput than others.
Now there's a direct correlation between a consumer and one or more partitions.
How can I prevent from one partition (slow consumer) accumulating unconsumed messages faster than other partitions (fast consumer), thus bringing an imbalance into the partitions.
One idea I had was to just force a rebalance on a regular basis but it appears that this will usually assign the same consumers to the same queues again. If they'd be randomly reassigned that would solve my issue.
I'd appreciate any hint on this.
Thank you, greetings from Berlin, Dennis