Just try to use grpc-java library.
1、Firstly, run the main() function in src/main/java/server/ServerDemo.java
.
2、Secondly, run the main() function in src/main/java/client/ClientDemo.java
.
And the files in src/main/java/grpc
directory are defined interfaces, which are compiled by protoc
.