kafka icon indicating copy to clipboard operation
kafka copied to clipboard

export client for access to metadata for health-check

Open tcollinsworth opened this issue 7 years ago • 4 comments

tcollinsworth avatar Aug 27 '17 05:08 tcollinsworth

Maybe there is a way to import the client without exporting it in index, but I couldn't figure out how.

tcollinsworth avatar Aug 27 '17 05:08 tcollinsworth

I don't think it is a good idea to export Client low level methods. I can't merge this.

oleksiyk avatar Aug 27 '17 13:08 oleksiyk

I want to get the metadata for a topic which there is a method in client that does this metadataRequest(topics). What do you suggest as an option? I've already successfully implemented and tested my health-check, against the client.metadataRequest(topics) method. I'm still learning, is there some way to import the client directly, something like import 'no-kafka/client' which I tried but didn't work.

tcollinsworth avatar Aug 27 '17 13:08 tcollinsworth

I think you can import no-kafka/lib/client

oleksiyk avatar Aug 27 '17 16:08 oleksiyk