Quick revision
The short answer
In the KIP-848 protocol, enabled with group.protocol=consumer, the group coordinator on the broker computes assignments with a server-side assignor (uniform or range, chosen with group.remote.assignor), instead of a leader consumer doing it. Members send periodic ConsumerGroupHeartbeat requests, receive their own target assignment, and converge independently, releasing a partition before it is given to its next owner, so there is no group-wide join and sync barrier and the rest of the group keeps consuming. session.timeout.ms and heartbeat.interval.ms move to the broker, partition.assignment.strategy no longer applies, and max.poll.interval.ms still applies on the client.
What to remember
In this answer, we saw that KIP-848 moves group coordination to the broker. The coordinator computes assignments with a server-side assignor, uniform or range, members exchange state through ConsumerGroupHeartbeat requests, and each member converges to its own target, with a partition moving only after its previous owner releases it, so the group never stops as a whole. session.timeout.ms and heartbeat.interval.ms become broker settings, partition.assignment.strategy is replaced by group.remote.assignor, and max.poll.interval.ms stays on the client. Groups opt in with group.protocol=consumer, since classic remained the default in 4.0.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
In the KIP-848 protocol, enabled with group.protocol=consumer, the group coordinator on the broker computes assignments with a server-side assignor (uniform or range, chosen with group.remote.assignor), instead of a leader consumer doing it. Members send periodic ConsumerGroupHeartbeat requests, receive their own target assignment, and converge independently, releasing a partition before it is given to its next owner, so there is no group-wide join and sync barrier and the rest of the group keeps consuming. session.timeout.ms and heartbeat.interval.ms move to the broker, partition.assignment.strategy no longer applies, and max.poll.interval.ms still applies on the client.
Why this question is asked
The classic consumer group protocol served Kafka for about a decade, but its design, a stop-and-sync round coordinated by one of the clients, is the root of most rebalance pain. Kafka 4.0 made its replacement generally available. Interviewers ask about it because it changes where decisions are made, which settings matter, and what to check before switching. In this answer, we will recap the classic design and its limits, then look at who computes assignments in the new protocol, how heartbeats carry the whole conversation, how members converge without a barrier, which settings move, and what to verify before adopting it.
1A Quick Recap of the Classic Protocol and Its Limits
In the classic protocol, a rebalance is a synchronisation barrier. Every member sends JoinGroup, the coordinator waits until all members have joined (or the rebalance timeout passes), one consumer chosen as leader computes the assignment on its own machine, and everyone sends SyncGroup to receive their part. Heartbeats are separate and only say 'I am alive'.
Three problems follow. One slow member delays the whole group, because the barrier waits for it. The assignment logic runs in client code, so its behaviour depends on library versions across Java, Go and Python clients. And even cooperative rebalancing, which avoids revoking everything, still needs everyone to join each round.
2Where Assignment Is Computed Now
In the new protocol, the group coordinator on the broker owns the assignment. When membership or subscriptions change, it computes a target assignment for the whole group with a server-side assignor. Two are provided: uniform, which spreads partitions evenly and is the default, and range, which co-locates the same partition numbers of different topics. A member can ask for one with the client setting group.remote.assignor; the broker's group.consumer.assignors setting lists which are available.
Notice what disappears: there is no leader consumer, no client-side assignor, and therefore partition.assignment.strategy is not used. Custom client-side assignors are not supported in this protocol.
| Aspect | Classic | KIP-848 (group.protocol=consumer) |
|---|---|---|
| Who computes assignment | Leader consumer, client-side assignor | Group coordinator, server-side assignor |
| Rebalance mechanics | JoinGroup and SyncGroup barrier for all | Heartbeats; each member converges alone |
| Effect of one slow member | Delays the whole group | Delays only partitions it must release |
| Session and heartbeat timing | Client: session.timeout.ms, heartbeat.interval.ms | Broker: group.consumer.session.timeout.ms and heartbeat interval |
| Assignor choice | partition.assignment.strategy | group.remote.assignor (uniform or range) |
max.poll.interval.ms | Client | Still client |
3Heartbeats Carry the Whole Conversation
Members talk to the coordinator with one request type, ConsumerGroupHeartbeat, sent periodically at the interval the broker tells them. A heartbeat says which partitions the member currently owns and, when it changes, what it subscribes to. The response can carry the member's new target assignment. So the heartbeat is no longer just a liveness signal; it is how the group is coordinated.
Each group and member has an epoch, a counter raised whenever the target assignment changes. A member reports its epoch with each heartbeat, and the coordinator uses it to know whether that member has caught up with the latest target.
4Converging Without a Barrier
Suppose a member joins a group of ten. The coordinator computes a new target that gives it, say, six partitions taken from three existing members. On their next heartbeats, those three learn that two of their partitions are no longer theirs. Each one finishes its current processing of those partitions, runs its rebalance listener's revocation callback, commits, and reports in its next heartbeat that it no longer owns them. Only then does the coordinator give those partitions to the new member.
Every other member's heartbeat says nothing has changed for it, so it keeps consuming without interruption. That is why there is no group-wide pause: no step requires all members to be in the same place at the same time, and a partition is never owned by two members at once because it moves only after its previous owner has released it.
7 messages in order. Play them, or step through them one at a time.
Only the partitions that move wait, and only for their previous owner to let go.
5Which Client Settings Stop Applying
Because liveness and coordination are now owned by the broker, session.timeout.ms and heartbeat.interval.ms are not client settings any more. The broker uses group.consumer.session.timeout.ms (45 s by default) and group.consumer.heartbeat.interval.ms (5 s by default), with minimum and maximum bounds an operator can set, and can be overridden per group. partition.assignment.strategy is replaced by group.remote.assignor. Setting the old properties together with group.protocol=consumer is rejected or ignored depending on the setting and version.
max.poll.interval.ms still applies on the client, with the same meaning as before: if our code stops calling poll() for that long, the member leaves the group. Only the client can know whether our processing thread is making progress.
6What to Check Before Switching
The classic protocol remained the client default in Kafka 4.0, so every group opts in explicitly. Before switching, we check that the brokers run a version where the new protocol is generally available and enabled, that each client library supports it (the Java client from 4.0; many non-Java clients through their own releases, so check each one), and that no group relies on a custom client-side assignor or on logic tied to how assignments used to be computed. Kafka Streams uses its own rebalance protocol and is a separate migration.
7Follow-up questions
Does the new protocol remove the need for static membership?
Not entirely. Rebalances become cheap, but a restarting member still triggers a reassignment when it leaves. The new protocol keeps group.instance.id, so a member that returns quickly can keep its partitions without anything moving.
Is the ConsumerRebalanceListener still called?
Yes. Members still get onPartitionsRevoked before giving up partitions and onPartitionsAssigned when they receive new ones, so commit-on-revoke logic continues to work. What changes is that only the moving partitions are passed, as with cooperative rebalancing.
8Conclusion
In this answer, we saw that KIP-848 moves group coordination to the broker. The coordinator computes assignments with a server-side assignor, uniform or range, members exchange state through ConsumerGroupHeartbeat requests, and each member converges to its own target, with a partition moving only after its previous owner releases it, so the group never stops as a whole. session.timeout.ms and heartbeat.interval.ms become broker settings, partition.assignment.strategy is replaced by group.remote.assignor, and max.poll.interval.ms stays on the client. Groups opt in with group.protocol=consumer, since classic remained the default in 4.0.
Open with
KIP-848 moves the consumer group's brain from the clients to the broker. In the classic protocol a rebalance is a barrier: everyone sends JoinGroup, a leader consumer computes the assignment with a client-side assignor, and everyone syncs, so one slow member delays the whole group.
Then, if they want more
In the new protocol, which members opt into with group.protocol=consumer, the group coordinator computes a target assignment itself with a server-side assignor, uniform by default or range, selectable with group.remote.assignor. Members talk to it only through periodic ConsumerGroupHeartbeat requests, which report what they own and receive their new target.
Each member converges independently: if a partition has to move, its current owner learns that on its heartbeat, runs its revoke callback, commits, and reports that it has released it, and only then is it given to the new owner. Everyone else keeps consuming, so there is no group-wide pause.
Because the broker now owns liveness and assignment, session.timeout.ms and heartbeat.interval.ms become broker settings, group.consumer.session.timeout.ms and the heartbeat interval, and partition.assignment.strategy no longer applies. max.poll.interval.ms stays on the client, because only the client knows whether my code is calling poll. Classic is still the default in 4.0, so I would check broker and client versions, including non-Java libraries, before switching.
About this answer
- Last updated
- 13 November 2026
- Versions it names
- Kafka 4.0
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Apache Kafka documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Explain the consumer group protocol introduced by KIP-848 and generally available in...": https://scrivio-interview-library.netlify.app/spring-boot/kafka-clients-in-depth/87777fd473/