Due to technical issues in the company, the HTTP protocol that has been used to implement RPC has been having performance problems. Out of interest in possible future technical upgrades and personal interest in technology, a simple RPC framework was implemented.
The core code of rpc
Public dependencies, tool classes
Test package that can be used as a two-sided package for the caller to facilitate coding
Serving Consumers, Direct Start; You can use postman to call the controller service to test the rcp provided by the provider
Service provider, just start it directly
start zookeeper:./zkCli.sh -server
start rpc-test-consumer
start rpc-test-privider
invoke controller in rpc-test-consumer by postman or other api test tool
http://raysblog.online/en/tags/Rpc/
build a simple config service can config like load balance way, serialization way ,maybe can add s simple function about search service and test it