DEV Community

Vineeth Kumar
Vineeth Kumar

Posted on

Information on Accessing Producer and Consumer Details

Hi Team,

I have a use-case for which I need your help. I have to use kafka-client and read information from a cluster. I am using java here.

The task is to connect to kafka-cluster, read the available topics and get the information about producers who contributed into those topics and consumers who have read from those topics.

I am able to connect to cluster and read topics. But I am not able to find way to get producer and consumer information (even id's). I wasn't able to find any resource on this online.

Note: I wont be creating either producers or consumers myself. I can do only Read operation.

Thanks in Advance.

Top comments (0)