I just read about rpc
http://www.grpc.io/ remote procedure calling, other hand we have a webservice
where client send a request to server and server responds.
Same things goes with rpc
where stub
calls a method which is at server end. I think same things can be implemented with the help of webservice
.
What rpc
can make a difference and where it is better to use ?
Webservices foster loose coupling. You should prefer that. RPCs limit you to a certain programming language. When you use webservices, you can have different languages and even different operating systems, that can interchange pieces of information. When you think about connecting serveral kinds of devices you should use a webservice, but when you are building a distributed application with several modules, maybe RPCs are more suitable.