Monedula
Kafka guide contents

Markdown

Part VI · Reference

Kafka Improvement Proposal

KIP-848: the new consumer group protocol, assigned by the broker

Consumer groups and queues · Shipped · since Kafka 4.0 · status checked November 2026

KIP-848 rebuilt consumer group rebalancing. The group coordinator on the broker now computes the assignment, and each member moves to it on its own through its heartbeats, so no rebalance ever stops the whole group. It is generally available since Kafka 4.0 and is enabled per consumer with group.protocol=consumer.

Proposal
KIP-848, The Next Generation of the Consumer Rebalance Protocol
Status
Shipped Generally available since Kafka 4.0; consumers opt in with group.protocol=consumer until 5.0 makes it the default.
Area
Consumer groups and queues
Cooperative rebalance - only the mover stops. c4 joined. Only the single moving partition (p1) is revoked/parked; p0, p2, p3 keep their owners and keep consuming. Open this step in the full playground

Why it was needed

The classic protocol put the logic in the clients: one member, the group leader, computed the assignment and every member had to join and sync before anyone could continue. One slow or misbehaving client could hold up the whole group, rebalances were hard to debug, and every client language had to reimplement the assignors.

What it changes

Members send heartbeats with their subscription; the broker keeps a target assignment and an epoch for the group and tells each member which partitions to release and which to take. Moving a partition only involves its old and new owner. Session timeout and heartbeat interval become broker settings (group.consumer.session.timeout.ms and group.consumer.heartbeat.interval.ms), and partition.assignment.strategy is replaced by a server-side assignor, uniform or range, picked with group.remote.assignor if needed.

How to use it

  • Use brokers on Kafka 4.0 or newer, where the new group coordinator is on by default.
  • Set group.protocol=consumer on the consumers. An existing classic group converts in place during a rolling restart.

Where it stands

Early access in Kafka 3.7, preview in 3.8, generally available in Kafka 4.0. The broker side is on by default since 4.0; the client default is still group.protocol=classic in Kafka 4.4, so a group only uses the new protocol when its consumers opt in. Kafka Streams has its own version, the streams rebalance protocol of KIP-1071.

What comes next

KIP-1274 (accepted) plans the switch. Kafka 4.3 already logs a recommendation to move to the new protocol, Kafka 5.0 makes group.protocol=consumer the default and deprecates classic, and Kafka 6.0 removes the classic protocol from KafkaConsumer. Brokers keep serving classic groups. Share groups (KIP-932) are built on the same broker-driven model.

See it in the simulator

The simulator shows incremental rebalancing with cooperative-sticky and labels it the consumer protocol; its simulated groups do not model the broker-side assignor or member epochs. Real Kafka clients connected to free play through the wire bridge get the protocol itself: the coordinator assigns with uniform or range, and members reconcile through their heartbeats with member and group epochs.

Sources

All Kafka KIPs