Skip to content

RoundRobinPartition mode:enable batching and has key , What will be the run result? #18366

Answered by merlimat
startjava asked this question in Q&A
Discussion options

You must be logged in to vote

If a key is provided on the message, that it will be honored. The round-robin is only applied if there's no key.

You can find the logic in https://github.com/apache/pulsar/blob/master/pulsar-client/src/main/java/org/apache/pulsar/client/impl/RoundRobinPartitionMessageRouterImpl.java#L74

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by merlimat
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