codelipenghui commented on issue #6647: URL: https://github.com/apache/pulsar/pull/6647#issuecomment-618184433
> Yes, instead of saying: "what is the index for this key?" we say "what is the consumer for this key?". > Grouping by consumer will lead to the smallest possible cardinality. Sorry, I'm lost here. How can we map a key to a consumer? I just know currently we map them by a hash range or a hash ring. So we need to get a consumer for a key from the hash range or the hash ring. The key purpose is to reduce the get consumer operation from the hash range or the hash ring. Too many get consumer operations to result in high CPU usage of the thread. I don't know how to map a key to a consumer without getting a consumer from a hash range or a hash ring. If I missed something, please point out, thanks. ---------------------------------------------------------------- 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: [email protected]
