If the application isCPU-boundandlagging, addingmore consumersto the group will allow betterparallel processing, especially since the topic has4 partitions, allowing up to 4 active consumers.
FromKafka Consumer Group Docs:
“Kafka achieves parallelism by distributing partitions across consumers in a group. Adding consumers helps reduce lag if partitions are underutilized.”
B may help but requires repartitioning and coordination.
C or D affects how much data is polled, not how fast it’s processed.
[Reference:Kafka Consumer Concepts > Parallelism and Scaling, ============]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit