Fundamentals and Distributed System Architecture Evolution

Micro service is evolved from a single application, the traditional single application is very simple, only users, applications and databases.

This architecture is very simple, but also very fragile, only suitable for small applications, as systems grow in size, more and more users, such monomers applications are not appropriate, distributed architecture came into being.

Distributed architecture to strengthen the stability and security of the system, but also makes the system becomes difficult to maintain.

Micro service inherited the characteristics of a distributed architecture, but also to retain the advantages of the single application, a collection of both director.

Application monomer advantages and disadvantages: simple structure, but the development is slow, long start-up time, dependent on huge and so forth.

Micro service advantages and disadvantages: easy to develop, understand and maintain, such as the deployment of independent and start, but a distributed system has brought the problem of distributed transactions, the need to manage multiple service governance will lead to service problems.

1) Gateway: routing forward filter +

2) registration service discovery: the calling and called party information maintenance

3) Configuration Center: configuration management, dynamic updates application.properties

4) Link Trace: call link time-consuming analysis

5) load balancer: distribute the load

6) Fuse: to protect themselves and callee

 

Common micro-services framework

1)Dubbo: ZooKeeper + Dubbo + Spring MVC/Spring Boot

Official Address: http://dubbo.apache.org/#!/?lang=zh-cn

Supporting:
  communication: RPC
  registry: ZooKeeper / Redis
  Configuration Center: Diamond

2) Spring Cloud: family bucket + easily embed third-party components (Netflix Netflix)

Official website: http://projects.spring.io/spring-cloud/

Supporting
  communication: HTTP Restful
  registry: Eruka / Consul
  Configuration Center: Config
  breaker: Hystrix
  Gateway: Zuul
  distributed tracking system: Sleuth + Zipkin

Learning materials: https://blog.csdn.net/zhangweiwei2020/article/details/78646252

 

Guess you like

Origin www.cnblogs.com/jwen1994/p/11525057.html