liveBook · Manning

Group leader

As explained in Kafka Streams in Action, Second Edition

A group leader is the elected Kafka consumer-group member that calculates partition assignments and submits them to the group coordinator.

A group leader is the elected Kafka consumer-group member that calculates partition assignments and submits them to the group coordinator. The coordinator tracks membership, while the leader communicates with it during group changes. section 4.3.2

Follow the group leader’s role during membership changes:

  • A consumer joins or stops communicating, changing group membership. section 4.3.2
  • The group coordinator triggers a rebalance, requiring members to rejoin. section 4.3.2
  • The group leader communicates with the coordinator as topic partitions are distributed among active consumers. section 4.3.2
Figure 4.12 Group coordinator is a broker assigned to track a subset of consumer groups, and the group leader is a consumer communicating with the group coordinator.
figure

Use the diagram to distinguish the broker-side group coordinator from the consumer-side group leader. section 4.3.2

How Kafka Streams in Action, Second Edition covers it

How deep it goes
Explains the leader’s role within coordinator-driven rebalancing but does not detail its assignment algorithm.
Examples
Uses a coordinator-and-leader diagram plus join, failure, and partition-redistribution scenarios.
What it assumes
Assumes consumer-group context while defining coordinators, membership changes, and rebalancing.
What you can do after
Evaluate how Kafka distributes partitions after consumer-group membership changes.
How it connects
Connects group leaders with consumer groups, group coordinators, rebalancing, and topic partitions.

Also explained in

Compare how 2 books explain group leader →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kafka Streams in Action, Second Edition. The section links point to the parts of the book it draws on.