Enterprise applications, how the services of two (dubbo architecture) enterprise applications, how the services of a (project architecture evolution)

  This enterprise-class applications, how the services of the second in the series. In the last one: enterprise applications, how the services of a (project architecture evolution) , the account of the evolution of enterprise application architecture and service management solutions can be selected: dubbo, or spring cloud. So first look dubbo, dubbo Alibaba produced micro-services framework, used widely.

1. Official Chart

 

2. Node roles and relations call

# Call the relationship Description:
     0 . Service is responsible for starting the container, load, run service provider
     1 service provider when you start, registration services they provided to the registry.
     2 service when consumers start their own subscription to the registry. needed to service
     3 . registry return address list service provider to the consumer. If there is a change, the registry will be based on long push to change the data connection to consumers
     4 . Service consumers, providers from the list of addresses, soft load balancing algorithm, choose a provider invoked. If the call fails, then select another call
     5. service consumers and providers, the cumulative number of calls and call time in memory, time sent once per minute statistical data to the monitoring center

 

 

3. Architecture Features

  3.1 Connectivity

1.注册中心负责服务地址的注册与查找,相当于目录服务。服务提供者和消费者只在启动时与注册中心交互,注册中心不转发请求,压力较小
2.监控中心负责统计各服务调用次数,调用时间等,统计先在内存汇总后每分钟一次发送到监控中心服务器,并以报表展示
3.服务提供者向注册中心注册其提供的服务,并汇报调用时间到监控中心,此时间不包含网络开销
4.服务消费者向注册中心获取服务提供者地址列表,并根据负载算法直接调用提供者,同时汇报调用时间到监控中心,此时间包含网络开销
5.注册中心,服务提供者,服务消费者三者之间均为长连接,监控中心除外
6.注册中心通过长连接感知服务提供者的存在,服务提供者宕机,注册中心将立即推送事件通知消费者
7.注册中心和监控中心全部宕机,不影响已运行的提供者和消费者,消费者在本地缓存了提供者列表
8.注册中心和监控中心都是可选的,服务消费者可以直连服务提供者

 

  3.2.健壮性

1.监控中心宕掉不影响使用,只是丢失部分采样数据
2.数据库宕掉后,注册中心仍能通过缓存提供服务列表查询,但不能注册新服务
3.注册中心对等集群,任意一台宕掉后,将自动切换到另一台
4.注册中心全部宕掉后,服务提供者和服务消费者仍能通过本地缓存通讯
5.服务提供者无状态,任意一台宕掉后,不影响使用
6.服务提供者全部宕掉后,服务消费者应用将无法使用,并无限次重连等待服务提供者恢复

 

  3.3.伸缩性

1.注册中心为对等集群,可动态增加机器部署实例,所有客户端将自动发现新的注册中心
2.服务提供者无状态,可动态增加机器部署实例,注册中心将推送新的服务提供者信息给消费者

 

  3.4.升级性

当服务集群规模进一步扩大,带动IT治理结构进一步升级,需要实现动态部署,进行流动计算,现有分布式服务架构不会带来阻力。下图是未来可能的一种架构:

  3.5.未来架构节点角色

  

 

Guess you like

Origin www.cnblogs.com/itall/p/10951540.html