notes
Chapter IV Consumer ribbon and feign combat service and high availability registry
1, between common way to explain the service call
Introduction: explain the invocation of common services between
RPC:
Remote Procedure Call, like call the local service (method) invoked the same server the service
supports synchronous, asynchronous calls
to establish a TCP connection between the client and the server, you can set up a time, multiple calls can reuse a link
PRC small packets
protobuf
Thrift
rpc: encoding and decoding, serialization, links, packet loss, agreement
Rest (Http):
http request, support for multiple protocols and features
low development cost convenience
http packets large
java development: HttpClient, URLConnection
Start
Calls between service here generally using http way.