2020年12月24日星期四

Java gRPC handle no service available on client

I wonder if there's a way to properly handle the situation when client can establish the channel to the server, but there's no matching service deployed on a server side. So far in my tests I see that client can successfully send an rpc call and then wait forever for response. Is there a way to instruct server or client to throw exception in this case?

I've stumbled upon the fallbackHandlerRegistry. But you can only return empty or null if nothing is found. There's seemingly no way you can say to the server close the call as there's nothing like this is deployed here.

https://stackoverflow.com/questions/65439573/java-grpc-handle-no-service-available-on-client December 24, 2020 at 10:22PM

没有评论:

发表评论