Tuesday 9 May 2017

Is there any way to know that Kafka server is not running before calling producer?

I am using kafka-node npm for sending message to Kafka topics. When I call producer.on('ready', function(){}), at that time Kafka server and zookeeper are not running. So what happened, ready event did not get fired.

Is there any way to know that Kafka server is not running before doing anything?



via Naisarg Patel

No comments:

Post a Comment