parallel-consumer icon indicating copy to clipboard operation
parallel-consumer copied to clipboard

Expose way to know if connection to Broker is lost then later regained

Open fowlerp-qlik opened this issue 3 years ago • 1 comments
trafficstars

A client may have the need to expose its health to the rest of the system (Kubernetes) and so client needs a way to know if the parallel consumer connection to the broker has been lost. It later needs to be informed if the connection has been re-established.

fowlerp-qlik avatar Feb 02 '22 18:02 fowlerp-qlik

@fowlerp-qlik are there mechanisms from the Kafka clients for this that you want exposed? Have you looked at available JMX metrics from the raw clients?

astubbs avatar May 06 '22 06:05 astubbs

@fowlerp-qlik do you specifically want to be informed of connection state changes, or is it enough to have the state exposed through metrics / health check?

astubbs avatar Nov 07 '22 16:11 astubbs

I've also just realised that AK consumer doesn't actually expose this either. We will be adding metrics very soon, let's see if that will be enough. Otherwise, we can also implement some active health check system like starting an admin client and interrogating the cluster about something.

astubbs avatar Nov 09 '22 07:11 astubbs