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:
[email protected]


Reply via email to