I am using Kafka in my software.
It is consuming messages from kafka topic continuously.
I am not closing the connection but starting and stopping the Kafka Consumer and Producer
Sometimes, kafka consumer is getting stuck with unknown reason.
I am restarting my software, it is working fine because it starts establishing connection again.
Is there any way to handle the exception on continuously running function?
I tried to put the function in try and except block but it is not consuming messages and not able to connect with the Kafka.
I am using Kafka in my software. It is consuming messages from kafka topic continuously. I am not closing the connection but starting and stopping the Kafka Consumer and Producer Sometimes, kafka consumer is getting stuck with unknown reason. I am restarting my software, it is working fine because it starts establishing connection again. Is there any way to handle the exception on continuously running function? I tried to put the function in try and except block but it is not consuming messages and not able to connect with the Kafka.
Thanks in Advance :)