The basic concept of distributed systems

A communication frame

1. Communication contains two parts: the network transport protocol IO +

2. Transmission Protocol: TCP / UDP / HTTP, based on the Socket stream processing

3. Network IO: NIO-based Socket

4. Netty NIO based distributed communications framework, the communications framework on the TCP or UDP abstracts

5. Dubbo based communication protocol Netty

6. grpc

 

Second, the framework sequences

1. A data serialization and deserialization

2. XML framework

3. JSON 框架: jackson, gson, fastjson

4. ProtoBuf frame

5. Hession frame, binary serialization

6. JDK comes deserialize serialized class: ObjectInput (Out) Stream

 

Third, the distributed service tracking

1. In order to record calls between the various services

2. from start to finish using only traceid

 

Fourth, the service registry

1. discovery and management services

2. Eureka, in the Spring Cloud

3. Zookeeper, generally used in combination with dubbo

4. Consul

5. ETCD

 

 

reference:

https://blog.csdn.net/qq_33746789/article/details/98065241

 

Guess you like

Origin www.cnblogs.com/june0816/p/11442942.html