笔记 1、面向服务的体系结构

1、对象序列化

序列化:将对象转换为二进制流

 方法:Google Protocol Buffer、Java Serialization、Hessian、JSON、XML


2、HTTP协议

格式:

encode: 0

commandLength: 5

command: Hello


3、负载均衡均衡算法

(1)、轮询法 Round Robin:

(2)、随机法 Random

(3)、源地址Hash法

(4)、加权轮询法 Weight  Round Robin

(5)、加权随机     Weight Random

(6)、最小连接  Least Connection


4、动态配置规则


5、ZooKeeper 实现路由和负载均衡


6、HTTP服务网关






原文地址:https://www.cnblogs.com/leeeee/p/7276413.html