Skip to content

how could you understand the underlying principle of RPC if you havn't implement one?

Notifications You must be signed in to change notification settings

ysj1173886760/ImplementRPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Implement basic echo RPC example based on protobuf

Compile guide

mkdir build
cd build
cmake ..
make

Then you can run example/client and example/server

This tiny project is aimd to illustrate the procedure of a single RPC call and how it works

20220415191202

This archtecture decoupled the message serializing/deserializing, service logic, server and communication

So you can use some high performance network lib to build channel/server module without interfering other parts

Once you've figured out how this works, next thing is do read source code of some real rpc frameworks and check how they can reach high performance. According what i've mentioned above, the one which brings you high performace must come from optimizing server/channel module.

Happy Coding.

About

how could you understand the underlying principle of RPC if you havn't implement one?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published