You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/04/12 19:08:21 UTC

[GitHub] [pulsar-client-go] merlimat commented on pull request #507: Expose NumPartitions() method on producer interface and GetHashingFunction() method

merlimat commented on pull request #507:
URL: https://github.com/apache/pulsar-client-go/pull/507#issuecomment-818062726


   > IIUC, the TopicMetadata gives us the number of partitions at the time the MessageRouter is invoked. For our use case, we need to keep recording the number of partitions when a new partition key is defined.
   
   I'm not convinced exposing `NumPartitions()` would help here. All the custom logic should be possible to implement within a custom message router. 
   
   In any case, there's already a way to get the partitions for a topic, by using `Client.TopicPartitions()` 


-- 
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:
users@infra.apache.org