Keeping the Balance with Kafka Streams

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
  1. Keeping the Balance with Kafka Streams Matthias J. Sax, Apache

    Kafka Committer and PMC member @ MatthiasJSax | @mjsax.bsky.social
  2. Program StreamsBuilder builder = … KStream words = builder.stream(…); KTable

    result = words.groupBy(…) .count(); result.toStream().to(…); Topology t = builder.build(); 3
  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
  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
  5. 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
  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 8
  7. “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.
  8. 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.
  9. 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),
  10. 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)
  11. 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.
  12. 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
  13. 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.
  14. 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
  15. 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
  16. 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.
  17. 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.
  18. 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
  19. 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
  20. 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.
  21. 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
  22. 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.
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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.
  30. 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.
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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.
  36. 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.
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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.
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. 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
  61. 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
  62. 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
  63. 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
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. 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.
  84. 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.
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. 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
  96. 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
  97. 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.
  98. 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.
  99. 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
  100. 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
  101. 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.
  102. 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
  103. “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.
  104. Keeping the Balance with Kafka Streams Matthias J. Sax, Apache

    Kafka Committer and PMC member @MatthiasJSax | @mjsax.bsky.social

Other Decks in Programming