Consumers
Consumer groups share partitions and track offsets.
What you will be able to do
- One partition per consumer in a group.
- Commit offsets after processing.
- Rebalance when members change.
In plain English
Consumer groups share partitions and track offsets.
- One partition per consumer in a group.
- Commit offsets after processing.
- Rebalance when members change.
consumer.subscribe(List.of("lessons"));
while (true) {
var records = consumer.poll(Duration.ofMillis(500));
records.forEach(r -> process(r.value()));
}Your turn
EasyExplain it back
Answer from memory: How many consumers in a group read one partition at a time?
TEXT · starter
Your answer…Check your understanding before moving on.
Knowledge checkQuestion 1
How many consumers in a group read one partition at a time?
Select an answer to continue
Study tools
Make it yours.
Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.
Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign inFinished reading?
Lock in what you just learned.
0%
Mark this lesson complete to save your place and move one step closer to the certificate.