Class PartitionWiseKafkaConsumerService

  • All Implemented Interfaces:, java.lang.AutoCloseable

    public class PartitionWiseKafkaConsumerService
    extends KafkaConsumerService
    PartitionWiseKafkaConsumerService is used to allocate share consumer from consumer pool at partition granularity. One shared consumer may have multiple topics, and each topic may have multiple consumers. For this basic implementation, we rely on round-robin to allocate next consumer from pool to achieve efficient and balanced shared consumer partition assignment load. We can improve this allocation strategy if we need to.