Hello,
Setup:
Client, server using callback unary api
question:
How do i check from a client side that server is up/down? What I'm currently doing is to issue grpc with deadline set + wait_for_ready as false. the return code if shows UNAVAILABLE, then server is not there, otherwise needs a retry...
Here it's not about health check service that could be used, but rather about mechanisms to check either thru channel or stub (issueing rpc)? I was also trying to query the channel state, however not quite clear what indicates an unavailable server (using grpc_connectivity_state)...
the use case is I have a client connected to N servers (1 channel per server) and does some simple load balancing with priorities. this client is actually another server ....
any help is greatly appreciated!
thanks!
VK