Replies: 1 comment
-
Please see this FAQ article https://github.com/confluentinc/librdkafka/wiki/FAQ#i-want-to-get-an-event-when-brokers-come-up-and-down (and possibly, the following one). It turns out that "the status of the connection" is not as well-defined as you might think. |
Beta Was this translation helpful? Give feedback.
-
I want to know the status of the connection to the server. I currently check whether the client has established a connection to the server through the rd_kafka_metadata interface, but I don't think this is the best solution. I think there must be a better implementation for kafka to notify the application layer of connection and disconnection events.
Beta Was this translation helpful? Give feedback.
All reactions