Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 04 · From Scratch · Kafka · with code: Go · about 22 min to read

Play it as a journeyTutor comes with a plan

Kafka 05: Consumer Groups

Consumer Groups
Consumer Groups · Open board

Follows Kafka 04: Partitions and hands off to Kafka 07: Exactly Once.

Before you start. Kafka 04: Partitions split one topic, a named stream of messages such as every order a shop takes, into several partitions: separate ordered logs a producer can write to in parallel, so writes stopped being capped at one machine’s disk. That lesson never said who is allowed to read a partition, and that gap is this lesson’s whole subject.

Lesson 28 of 117 in From Scratch

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • Ten sorters, four bins, and no rule
  • 2008: Yahoo needed the same rule, for everything
  • Kafka borrows the referee, and inherits its blind spot
  • 2015: one referee, not a noticeboard
  • What a redeal costs, and where the tally lives
  • Mark the tally first, or do the work first?

Terms it explains: partitions, consumer group, coordinator, rebalance, offset, at-most-once, at-least-once, KIP-848, each topic independently, sticky, eager, slowest member, Cooperative incremental rebalancing, local state, Static membership, next, liveness, progress, group.

Lab

You start ten consumers against a four-partition topic. How many of them do any work?

Push Consumers in the group past Partitions in each topic and watch who holds nothing under The group.

Open The consumer lease

Related papers

Review From Scratch