codelipenghui commented on a change in pull request #5745: Add document for sticky consumer URL: https://github.com/apache/pulsar/pull/5745#discussion_r350627838
########## File path: site2/docs/client-libraries-java.md ########## @@ -607,6 +607,19 @@ consumer 2 will receive: ("key-4", "message-4-2") ``` +By default, consumer in `Key_Shared` subscription will be assigned a fixed hash range of key automatically. If you want to specify the hash ranges of a consumer, you can using the key shared policy: Review comment: > Shall we use Key_Shared subscription overall? Yes, it's better to use `Key_Shared`, in the java source code file also use `Key_Shared` > Do you mean changing it to the following? By default, a consumer in the key_shared subscription is assigned a fixed key hash range automatically. If you want to specify the key hash ranges of a consumer, you can use the key shared policy: ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services