最佳答案
I am using apache kafka for messaging. I have implemented the producer and consumer in Java. How can we get the number of messages in a topic?