-
https://pulsar.apache.org/docs/next/concepts-messaging/#routing-modes |
Beta Was this translation helpful? Give feedback.
Answered by
merlimat
Nov 11, 2022
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
merlimat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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