Re: Best Way to Check Producer's Connection to Kafka

2015-04-19 Thread Andy Lindeman
On Apr 15, 2015, at 12:09 AM, Alex Melville amelvi...@g.hmc.edu wrote: Hi All, What is the lightest way to check if the connection to Kafka is up or not? Currently I'm having the producer attempt to send a message to a topic, and then catching a TimeoutException and handling logic inside

Best Way to Check Producer's Connection to Kafka

2015-04-15 Thread Alex Melville
Hi All, What is the lightest way to check if the connection to Kafka is up or not? Currently I'm having the producer attempt to send a message to a topic, and then catching a TimeoutException and handling logic inside of the catch statement. This doesn't seem like the right way to do this,