kafka
kafka copied to clipboard
export client for access to metadata for health-check
Maybe there is a way to import the client without exporting it in index, but I couldn't figure out how.
I don't think it is a good idea to export Client low level methods. I can't merge this.
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.
I think you can import no-kafka/lib/client