How producer to know whether the status Kafka cluster #4656
barryzhounb
started this conversation in
General
Replies: 1 comment 2 replies
-
Hi @scholzj , any ideas or suggestions for this question? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently we are using Strimizi as out Kafka cluster, I have some question about producer.
when we initialize a producer as following, after that, then Kafka producer is initialized, but at this time, suppose Kafka cluster is not available, we could not know the status Kafka cluster from producer.
Once we call producer.send(new ProducerRecord()), then we get exception such as TimeoutExeption.
I am wondering what is proposed pattern to implement producer in order to know the status Kafka cluster. In the above scenario, we don't know the status Kafka cluster until we hit the error when we send message.
Is there a way to get the status Kafka cluster when we initialize a producer or before we call producer.send() to send message?
Is there any proposed pattern?
Beta Was this translation helpful? Give feedback.
All reactions