Try
↑ ↓ move↵ openesc close
In this lesson · topic 7 of 7
  1. 1. One line is not enough
  2. 2. Partitions, offsets and consumer groups
  3. 3. Four partitions, one hot key, one rebalance
  4. 4. When one partition cannot keep up
  5. 5. How many partitions to create
  6. 6. Where the commit goes decides the guarantee
  7. 7. Owners, order and commits: three checks

Topic 7

Owners, order and commits: three checks

3 min read

Predict first

A topic has 6 partitions and a consumer group has 10 consumers. How many consumers do useful work?

Predict first

What does a log guarantee about order?

Predict first

A consumer processed 100 messages since its last offset commit, then crashed. Another consumer takes over the partition. What happens?

Take away

  • A partitioned log keeps order per key and shares the load across consumers by giving each partition one owner.
  • Parallelism is capped by the partition count. A hot key is capped by a single partition.
  • Offsets are addresses. Commits save progress, and a restart or rebalance repeats the work since the last commit.
  • A log can be replayed, within retention. Order across keys is not guaranteed.

Sources

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms