My GRPC service is only accessible to applications on the local machine.
I assume it would perform faster if the clients would connect over Unix domain socket, rather then localhost:port
I'm tyring to understand how to create the grpc service in this case, it should be able to run on CentOS as well as on Mac
Currently creating the server like this:
val server: Server = ServerBuilder.forPort(port).addService(GreeterGrpc.bindService(new GrpcServer, ec)).build().start()
I also tried configuration like this:
val server: Server = io.grpc.netty.NettyServerBuilder.forPort(port).addService(ProtoReflectionService.newInstance()).addService(GreeterGrpc.bindService(new GrpcServer, ec)).build().start()
but couldn't figure out how to bind to local socket rather then localhost