This is a demo project that shows how a simple basic RPC framework works.
The project is divided into three modules.
- Server
Providing a simple service of calculating sum of two ints. - Client
Calling service to calculate sum of two ints. - Framework
Serving as a simple basic RPC framework for registering and invoking service.
Git and maven are prerequisites for getting and making the project.
-
Check out the project
git clone git@github.com:MottoX/simple-rpc-demo.git
-
Compile and package the project
sh build.sh
-
Run JAR of server
sh start_server.sh
-
Run JAR of client
sh start_client.sh
Then, you can view information that is being printed on consoles of client and server.