当前位置:网站首页>Get to know RPC

Get to know RPC

2022-06-10 14:51:00 Huang3stone

RPC What is it? ?

RPC (Remote Procedure Call) Is a remote procedure call , He can request the service of the program on the remote computer through the network .

 To put it simply, I ask someone else's interface to use .( Follow HTTP The agreement is a bit like )
  1. RPC The use of TCP/UDP agreement ,HTTP Service is based on HTTP Agreed ,HTTP In the transport layer TCP above , So the efficiency is average .
  2. HTTP, Most pass through json To achieve , Byte size and serialization take more time than thrift More performance intensive ,RPC Basically, it has its own load balancing policy and automatically notifies in terms of service governance ,RPC It is mainly used for internal service invocation ,HTTP It is mainly used in external heterogeneous environment ,APP, Browser call .
  3. HTTP It's a short link ,RPC Is a long link , No need to think http Each connection requires three handshakes , Reduced network overhead .
原网站

版权声明
本文为[Huang3stone]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206101437221896.html