Hello Kafka Community,

I would like to start a discussion on KIP-1394, which proposes adding a
hash value computed from the Streams client's topology metadata to the
StreamsGroupHeartbeatRequest.

*- KIP: https://cwiki.apache.org/confluence/x/qASWGw
<https://cwiki.apache.org/confluence/x/qASWGw>*

When a member joins or rejoins a Streams group, the group coordinator
compares the topology in the StreamsGroupHeartbeat request with the
topology registered for the group. During a rolling update of an
application with a large topology, several members may rejoin within a
short period. Repeated structural comparisons can increase the load on the
coordinator.

This KIP proposes that the client send a topology hash (TopologyHash) and
its format version (TopologyHashVersion) alongside the topology metadata.
For the same topology epoch, the coordinator skips the structural
comparison if the hash in the request matches the cached hash for that
format version. If no matching cache entry exists or the hashes differ, the
coordinator performs the existing structural comparison. This reduces the
cost of repeated topology comparisons during rolling updates.
Looking forward to the community's feedback.

Best regards,
Sanghyeok An.

Reply via email to