If the application is CPU-bound and lagging, adding more consumers to the group will allow better parallel processing, especially since the topic has 4 partitions, allowing up to 4 active consumers.
From Kafka 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