Self-test
Check your understanding
Self-test11 questions
Why can't a 6-partition topic use more than 6 consumers in one group?
What changed in the KIP-848 protocol compared with classic rebalancing? Who computes the assignment now?
Name four things that trigger a rebalance.
Describe the
max.poll.interval.msrebalance loop and three ways to fix it.What does static membership (
group.instance.id) prevent?Commit-then-process vs process-then-commit: what does a crash do to each?
Why is auto-commit's guarantee fuzzy?
Give three ways to make a consumer idempotent.
How can
auto.offset.reset=latestsilently skip data?How do share groups differ from consumer groups in ordering, parallelism, and acknowledgement?
- Design question
An image-thumbnailing service gets bursty uploads, each job takes 2-30 seconds, and order doesn't matter. Design its Kafka consumption, comparing a consumer group and a share group.