Share
Embed
Keeping the Balance with Kafka Streams
With the 4.2.0 release of Apache Kafka, a new type of consumer group was introduced: a "streams" group. In this talk, we explain how "streams" groups and their underlying rebalance protocol work.
Matthias J. Sax
October 12, 2026
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
122 slides
-
Keeping the Balance with Kafka Streams Matthias J. Sax, Apache
Kafka Committer and PMC member @ MatthiasJSax | @mjsax.bsky.social -
Program StreamsBuilder builder = … KStream words = builder.stream(…); KTable
result = words.groupBy(…) .count(); result.toStream().to(…); Topology t = builder.build(); 3 -
(Sub -)Topology input Program StreamsBuilder builder = … 1 grpBy
2 src 1 2 3 4 shuffle KStream words = builder.stream(…); KTable result = words.groupBy(…) .count(); result.toStream().to(…); src 3 cnt 4 sink log sink result Topology t = builder.build(); 4 -
(Sub -)Topology input Program StreamsBuilder builder = … 1 grpBy
2 src 1 2 3 4 shuffle KStream words = builder.stream(…); KTable result = words.groupBy(…) .count(); result.toStream().to(…); src 3 cnt 4 sink log sink result Topology t = builder.build(); 5 -
input (Sub -)Topology sink cnt log sink result grpBy src
shuffle src 6 -
sink cnt log 1_0 shuffle - 1 shuffle - 0
input - 0 input - 1 src log - 0 result - 1 sink result - 0 src result grpBy shuffle input (Sub -)Topology Tasks 0_0 0_1 1_1 log - 1 7 -
sink cnt log 1_0 shuffle - 1 shuffle - 0
input - 0 input - 1 src log - 0 result - 1 sink result - 0 src result grpBy shuffle input (Sub -)Topology Tasks 0_0 0_1 1_1 log - 1 8 -
“Classic” consumer groups • Light weight broker -side group -coordinator
• Group membership only (who is in the group) • Rebalancing orchestration • Partition assignment happens client side • Even with newer improvements of incremental cooperative rebalancing, still “synchronization barrier” and other issues/limitations Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Challenges • Mapping between tasks and partitions •
Stateful tasks • Multiple task roles: active, standby, warmup • Tight coupling of features inside the assignors • Warmup tasks • Rack -aware standby task assignment • Probing rebalancing • Non-resolvable bugs for static membership Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
New “consumer” groups (KIP -848) • GA since Apache Kafka
4.0 • Moves partition assignment into the group -coordinator • Fully incremental • Declarative assignment with k8s -style reconciliation • However: while originally planned to support Kafka Streams (via client it would not have solved the Kafka Streams specific issues Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -side custom assignors), -
Redesigning ”consumer” groups for Kafka Streams • GA since Apache
Kafka 4.2 (not feature complete) • New “streams” group type • Adds StreamsHeartbeatRequest /Response RPCs • Moves task assignment into the group -coordinator State of the art (4.2 + 4.3 releases) • Active and standby task support (missing direct standby • Sticky task assignor • Offline migration Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -> active promotion) -
Upcoming Apache Kafka 4.4 release • In-place task role conversions
• Standby/warmup -> active promotion • Standby < -> warmup conversions • Active -> standby demotion • Static group membership • Broker-side custom assignors • Metadata for rack -awareness • “warmup task ready”, ie, full client-side support (broker part missing) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Warmup tasks as first -class citizens “classic” protocol: • Sticky
assignor • High -Availability assignor (balanced assignor, warmup tasks, probing rebalancing, rack standby task assignment) “streams” protocol: • Sticky assignor (AK 4.5: including rack -aware standby task assignment) • Balanced assignor (Ak 4.5: including rack -aware standby task assignment) • AK 4.5: Warmup task supported for any assignor, directly inside the group -coordinator Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -aware -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A Heartbeat Req ( - , 0, [], [], []) 0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A Heartbeat Req ( - , 0, [], [], []) 0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr 1 itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A Heartbeat Req ( - , 0, [], [], []) 0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr 1 itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A Heartbeat Req ( - , 0, [], [], []) 0 1 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 (A, 1, [0_0, 0_1, 1_0, 1_1], [], []) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 1 0_0 0_1 1_0 1 1_1 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 (A, 1, [0_0, 0_1, 1_0, 1_1], [], []) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 1, [0_0, 0_1, 1_0, 1_1], [], []) 1 0_0 0_1 1_0 1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 1, [0_0, 0_1, 1_0, 1_1], [], []) 1 0_0 0_1 1_0 1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 1, [0_0, 0_1, 1_0, 1_1], [], []) 1 0_0 0_1 1_0 1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 (A, 1, - , - , - ) itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 1, - , - , - ) 1 0_0 0_1 1_0 1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 1, - , - , - ) 1 0_0 0_1 1_0 1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 (A, 1, - , - , - ) itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 ( - , 0, [], [], []) 0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 ( - , 0, [], [], []) 0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 ( - , 0, [], [], []) 0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, [], [], []) itt en permission of Confluent, Inc. 2 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 2 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, [], [], []) itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, - , - , - ) 1 0_0 0_1 1_0 1 1_1 2 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, - , - , - ) 1 0_0 0_1 1_0 1 1_1 2 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, - , - , - ) 1 0_0 0_1 1_0 1 1_1 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 (A, 1, [0_0, 1_0], [], []) 2 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 (A, 1, [0_0, 1_0], [], []) 2 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 (B, 2, - , - , - ) 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 (B, 2, - , - , - ) 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, - , - , - ) itt en permission of Confluent, Inc. 2 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, [0_0, 1_0], [], []) 1 0_0 1 1_0 2 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, [0_0, 1_0], [], []) 1 0_0 2 1_0 2 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 1_0 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, [0_0, 1_0], [], []) 1 0_0 2 1_0 0_0 1_0 2 0_0 1_0 2 0_1 1_1 (A, 2, - , - , - ) 2 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 2 0_0 2 1_0 0_0 1_0 2 0_0 1_0 2 0_1 1_1 (A, 2, - , - , - ) 2 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 2 0_0 2 1_0 (B, 2, - , - , - ) 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_0 1_0 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 2 0_0 1_0 (B, 2, - , - , - ) 2 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_0 1_0 2 0_0 1_0 2 0_1 1_1 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 2 0_0 1_0 (B, 2, - , - , - ) 2 (B, 2, [0_1, 1_1], [], []) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_0 1_0 2 0_0 1_0 2 0_1 1_1 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 2 2 0_0 0_1 1_0 1_1 (B, 2, [0_1, 1_1], [], []) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_0 1_0 2 0_0 1_0 2 0_1 1_1 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 2 0_0 1_0 (B, 2, [0_1, 1_1], [], []) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_0 1_0 2 0_0 1_0 2 0_1 1_1 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 2 0_0 1_0 (B, 2, [0_1, 1_1], [], []) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_0 1_0 2 0_0 1_0 2 0_1 1_1 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 2 0_0 1_0 (B, 2, [0_1, 1_1], [], []) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, - , - , - ) itt en permission of Confluent, Inc. 2 0_0 1_0 2 0_0 1_0 2 0_1 1_1 2 0_1 1_1 -
Moving Stateful Tasks Task 1_1 cnt log updates log -
1 Instance A Instance B 48 -
Moving Stateful Tasks Task 1_1 restore log - 1 Instance
A Instance B 50 -
Moving Stateful Tasks Task 1_1 cnt log updates log -
1 Instance A Instance B 51 -
Warmup Tasks Task 1_1 cnt log updates log - 1
Instance A Instance B 52 -
Warmup Tasks Task 1_1 Warmup 1_1 cnt log updates restore
log - 1 Instance A Instance B 53 -
Warmup Tasks Task 1_1 cnt log updates log - 1
Instance A Instance B 54 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 1, - , - , - ) 1 0_0 0_1 1_0 1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 (A, 1, - , - , - ) itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 ( - , 0, [], [], []) 0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 1 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 ( - , 0, [], [], []) 0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 2 0_0 1_0 2 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 ( - , 0, [], [], []) 0 0_0 0_1 1_0 1_1 2 0_0 1_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 ( - , 0, [], [], []) 0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, [], [], [1_1]) itt en permission of Confluent, Inc. 2 0_0 0_1 1_0 1_1 1_1 2 0_0 1_0 1_1 2 0_1 W 1_1 Intermediate Assignment 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 2 0_0 0_1 1_0 1 1_1 2 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, [], [], [1_1]) itt en permission of Confluent, Inc. 0_0 0_1 1_0 1_1 1_1 2 0_0 1_0 1_1 2 0_1 W 1_1 Intermediate Assignment 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 (B, 2, [], [], [1_1], 24, 100) 2 1_1 2 0_0 0_1 1_0 1_1 1_1 2 0_0 1_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 (B, 2, [], [], [1_1], 24, 100) 2 1_1 2 0_0 0_1 1_0 1_1 1_1 2 0_0 1_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 (B, 2, [], [], [1_1], 24, 100) 2 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, - , - , - ) itt en permission of Confluent, Inc. 2 0_0 0_1 1_0 1_1 1_1 2 0_0 1_0 1_1 2 0_1 W 1_1 Intermediate Assignment 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, - , - , - ) 1 2 0_0 0_1 1_0 1 1_1 2 1_1 0_0 0_1 1_0 1_1 1_1 2 0_0 1_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, - , - , - ) 1 2 0_0 0_1 1_0 1 1_1 2 1_1 0_0 0_1 1_0 1_1 1_1 2 0_0 1_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, - , - , - ) 1 0_0 0_1 1_0 1 1_1 0_0 0_1 1_0 1_1 2 0_0 1_0 (A, 1, [0_0, 1_0, 1_1], [], []) 2 2 1_1 1_1 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 1 0_0 0_1 1_0 1 1_1 0_0 0_1 1_0 1_1 2 0_0 1_0 (A, 1, [0_0, 1_0, 1_1], [], []) 2 2 1_1 1_1 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 1, [0_0, 1_0, 1_1], [], []) 1 2 0_0 1_0 1 1_1 2 1_1 0_0 0_1 1_0 1_1 1_1 2 0_0 1_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 1, [0_0, 1_0, 1_1], [], []) 1 0_0 1_0 2 1_1 0_0 1_0 2 B 2 1_1 1_1 1_0 1_1 1_1 2 0_0 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 1, [0_0, 1_0, 1_1], [], []) 1 0_0 1_0 2 1_1 0_0 1_0 2 1_0 (A, 2, - , - , - ) 1_1 1_1 B 0_0 2 2 1_1 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 1_0 (A, 2, - , - , - ) 1_1 1_1 B 0_0 2 2 1_1 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 1_1 2 1_1 1_0 1_1 1_1 (B, 2, - , - , - , 57, 105) 0_0 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 1_1 2 0_1 1_0 1_1 1_1 (B, 2, - , - , - , 57, 105) 0_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 1_1 (B, 2, [0_1], [], [1_1]) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_1 1_0 1_1 1_1 (B, 2, - , - , - , 57, 105) 0_0 1_1 2 0_1 W 1_1 Intermediate Assignment 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 0_1 1_1 (B, 2, [0_1], [], [1_1]) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_1 1_0 1_1 1_1 2 0_0 1_1 2 0_1 W 1_1 Intermediate Assignment 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 0_1 1_1 2 0_1 1_0 1_1 1_1 (B, 2, [0_1], [], [1_1], 86, 109) 0_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 0_1 1_1 2 0_1 1_0 1_1 1_1 (B, 2, [0_1], [], [1_1], 86, 109) 0_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, - , - , - ) itt en permission of Confluent, Inc. 2 0_1 1_0 1_1 1_1 (B, 2, [0_1], [], [1_1], 86, 109) 0_0 1_1 2 0_1 W 1_1 Intermediate Assignment 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 0_1 1_1 2 0_1 1_0 1_1 1_1 (B, 2, - , - , - , 103, 115) 0_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, - , - , - ) itt en permission of Confluent, Inc. 2 0_1 1_0 1_1 1_1 (B, 2, - , - , - , 103, 115) 0_0 1_1 2 0_1 W 1_1 Intermediate Assignment 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 2 B 2 0_1 1_1 2 0_1 1_0 1_1 1_1 (B, 2, - , - , - , 119, 123) 0_0 1_1 2 0_1 W 1_1 Intermediate Assignment Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 1_1 B (B, 2, - , - , - , 119, 123) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 1_1 B (B, 2, - , - , - , 119, 123) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, - , - , - ) itt en permission of Confluent, Inc. 2 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 1_1 B (B, 2, - , - , - , 120, 130) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 1_1 B (B, 2, - , - , - , 120, 130) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, - , - , - ) itt en permission of Confluent, Inc. 2 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 2, - , - , - ) 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 1_1 B 2 0_1 2 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 2, - , - , - ) 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 1_1 B 2 0_1 2 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 2, - , - , - ) 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 (A, 2, [0_0, 1_0], [], []) 1_1 B 2 0_1 2 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 (A, 2, [0_0, 1_0], [], []) 1_1 B 2 0_1 2 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 1_1 B (B, 2, - , - , - , 130, 130) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 2 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 2 0_0 1_0 2 1_1 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 1_1 B (B, 2, - , - , - , 130, 130) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 2, - , - , - ) itt en permission of Confluent, Inc. 2 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A (A, 2, [0_0, 1_0], [], []) 2 0_0 2 1_0 0_0 1_0 3 0_0 1_0 1_1 3 0_1 1_1 1_1 B 2 0_1 2 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 0_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 2, [0_0, 1_0], [], []) 2 2 0_0 0_1 1_0 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_0 1_0 2 0_1 1_1 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B (A, 2, [0_0, 1_0], [], []) 2 0_0 1_0 3 0_0 1_0 3 0_0 1_0 2 0_1 1_1 3 0_1 1_1 (A, 3, - , - , - ) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 3 0_0 1_0 3 0_0 1_0 3 0_0 1_0 2 0_1 1_1 3 0_1 1_1 (A, 3, - , - , - ) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 3 0_0 1_0 (B, 2, - , - , - , 130, 130) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_0 1_0 2 0_1 1_1 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 3 0_0 1_0 (B, 2, - , - , - , 130, 130) 2 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_0 1_0 3 0_1 1_1 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 3 0_0 1_0 (B, 2, - , - , - , 130, 130) 2 0_1 1_1 (B, 3, [0_1, 1_1], [], []) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_0 1_0 3 0_1 1_1 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 3 3 0_0 0_1 1_0 1_1 (B, 3, [0_1, 1_1], [], []) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_0 1_0 3 0_1 1_1 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 3 0_0 1_0 (B, 3, [0_1, 1_1], [], []) 3 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_0 1_0 3 0_1 1_1 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 3 0_0 1_0 (B, 3, [0_1, 1_1], [], []) 3 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_0 1_0 3 0_1 1_1 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 3 0_0 1_0 (B, 3, [0_1, 1_1], [], []) 3 0_1 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr (B, 3, - , - , - ) itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_0 1_0 3 0_1 1_1 3 0_1 1_1 -
Fault Tolerance and High Availability Task 1_1 cnt log updates
log - 1 Instance A 103 -
Fault Tolerance and High Availability Task 1_1 cnt log updates
log - 1 Instance A 104 -
Fault Tolerance and High Availability Task 1_1 restore log -
1 Instance B 105 -
Fault Tolerance and High Availability Task 1_1 cnt log updates
log - 1 Instance B 106 -
Standby Tasks Task 1_1 cnt log updates log - 1
Instance A 107 -
Standby Tasks Task 1_1 Standby 1_1 cnt log updates restore
log - 1 Instance A Instance B 108 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A B 3 3 0_0 0_1 1_0 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 3 0_0 1_0 3 0_0 1_0 3 0_1 1_1 3 0_1 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 3 0_0 1_0 3 1_1 0_0 1_0 3 0_0 1_0 S 1_1 B 3 0_1 1_1 3 1_0 0_1 1_1 3 0_1 1_1 S 1_0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr 1_1 itt en permission of Confluent, Inc. 1_0 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
A 3 0_0 1_0 3 1_1 0_0 1_0 3 0_0 1_0 S 1_1 B 3 0_1 1_1 3 1_0 0_1 1_1 3 0_1 1_1 S 1_0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr 1_1 itt en permission of Confluent, Inc. 1_0 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
3 0_0 1_0 3 0_0 1_0 S 1_1 B (B, 3, [0_1, 1_1], [1_0], []) 3 0_1 1_1 1_0 3 0_1 1_1 3 0_1 1_1 S 1_0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr 1_1 itt en permission of Confluent, Inc. 1_0 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
B (B, 3, [0_1, 1_1], [1_0], []) 3 0_1 1_1 1_0 3 0_1 1_0 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 1_1 4 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
B (B, 3, [0_1, 1_1], [1_0], []) 3 0_1 1_1 1_0 4 0_0 0_1 1_0 1_1 4 0_0 0_1 1_0 1_1 (B, 4, [0_0, 0_1, 1_0, 1_1], [], []) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
B 4 0_0 0_1 1_0 4 1_1 0_0 0_1 1_0 1_1 4 0_0 0_1 1_0 1_1 (B, 4, [0_0, 0_1, 1_0, 1_1], [], []) Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
B (B, 4, [0_0, 0_1, 1_0, 1_1], [], []) 4 0_0 0_1 1_0 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 4 0_0 0_1 1_0 1_1 4 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
B (B, 4, [0_0, 0_1, 1_0, 1_1], [], []) 4 0_0 0_1 1_0 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. 4 0_0 0_1 1_0 1_1 4 0_0 0_1 1_0 1_1 -
Kafka Streams Clients Group Coordinator Current Assignment | Target Assignment
B (B, 4, [0_0, 0_1, 1_0, 1_1], [], []) 4 0_0 0_1 1_0 1_1 Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr 4 0_0 0_1 1_0 1_1 4 0_0 0_1 1_0 1_1 (B, 4, - , - , - ) itt en permission of Confluent, Inc. -
KIP -848 vs KIP -1071 “Consumer” groups • Partition assignment
• Stateless / no roles • Single owner per partitions (like active tasks for Kafka Streams) “Streams” groups • Task assignment • Stateless vs Stateful / active, standby, warmups • Refiner step to inject warmup tasks • Different epoch bump rules / multiple owners across task Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -roles possible -
“Streams” groups limitations Warmup task support planned for Apache Kafka
4.5 release • Kafka Streams 4.4+ client required TBD (Apache Kafka 4.6+): • No online migration (“classic” vs “streams”) • No topology evolution • No pattern subscription Future improvements • Distinguish between persistent vs in -memory state Copyright 2025, Confluent, Inc. All rights reserved. This document may not be reproduced in any manner without the express wr itt en permission of Confluent, Inc. -
Keeping the Balance with Kafka Streams Matthias J. Sax, Apache
Kafka Committer and PMC member @MatthiasJSax | @mjsax.bsky.social