intermediateBuilding the Consumer Microservice

What does 'consumer group' mean, and why does adding more consumer instances only help scaling up to a point?

A consumer group is a set of consumer instances that jointly consume a topic, with each partition assigned to exactly one consumer in the group at a time. Scaling helps only up to the number of partitions — once you have as many consumer instances as partitions, adding more consumers leaves them idle, since a partition can't be split further across two consumers in the same group.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full Spring Ecosystem Mastery library.

What does 'consumer group' mean, and why does adding more consumer instances only help scaling up to a point?

Next Step

Continue to Why is manual offset commit (rather than auto-commit) often preferred for a consumer doing meaningful processing?← Back to all Kafka & Microservices questions