Hi,
I read that we're now always using:
NettyChannelBuilder channelBuilder =
NettyChannelBuilder.forTarget(target.getAddress());
to build the gRPC channel. However, if the ratis client runs in the same
process, is it possible that we try to build an InProcessChannel first so
that gain better performance?
The motivation is that I'm considering exporting more ports for the ratis
server (process) when writing downstream projects. In this case, when I'm
talking to the ratis cluster (the replicated state machines), I need to use
a ratis client so ratis can handle the consensus part. If I always
initialize a Netty channel for every client, it looks like a significant
performance concern.
Best,
tison.