Skip to content

Partition Assignment Strategy can be CooperativeSticky only #211

Closed Answered by LGouellec
ognenbek asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ognenbek,

The PartitionAssignmentStrategy setter is private now because Streamiz enforce to use the cooperative rebalancing protocol.
For more information : https://www.confluent.io/blog/cooperative-rebalancing-in-kafka-streams-consumer-ksqldb/

But there is no impact if the consumer use the range partition assignor now. So I can be change the setter to public for the next release.

As a workaround, you can wrap your own stream config and set the assignment strategy like this implementation :

       public class MyStreamConfig<KS, VS> : IStreamConfig
            where KS : ISerDes, new()
            where VS : ISerDes, new()
        {
            private StreamConfig<KS, VS> wrapperConfig 

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LGouellec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants