[Micro] SpringCloud Services Portal

1. What is Micro Services

  According to the business application into a small service, each service provides a single micro-business functions, a service that is only one thing to run in a separate process, and have their own separate database

II. Micro Services and Micro Service architectural differences

  Micro-service emphasized that the size of the service is a service application concerned a certain point, is specific to solve a problem / provide a corresponding service floor, while the micro-service architecture is an architectural pattern, to promote the applications into a single a small group of services, co-ordination between services. Using lightweight communication mechanism between the service (typically Restful API HTTP protocol) collaborate with each other,

III. Advantages and disadvantages of micro services

advantage

  1. Each service has its own micro-storage capacity, can have its own database, but also a unified database
  2. Only business logic code, and not HTML, CSS, or other interface components mixed
  3. Each service cohesive enough, small enough
  4. Development of simple, high development efficiency, a service only one thing

Shortcoming

  1. Developers want to deal with the complexity of distributed systems
  2. Operation and maintenance more difficult, system deployment relies
  3. Inter-service communication costs increase
  4. Data consistency
  5. System Integration Testing

IV. Micro-services technology stack

Here Insert Picture Description
Here Insert Picture Description

V. Why springCloud

Here Insert Picture Description
Here Insert Picture Description
Our company was selected springcloud reasons are the following:

  1. In recent years, community activists relatively high degree of
  2. Itself provides a lot of features, is a family bucket legend springcloud
  3. The company is to encourage employees to learn the company also wants employees to learn cutting-edge technology under

VI. The difference springCloud and Dubbo

Here Insert Picture Description
  Through the above comparison can be found SpringCloud more powerful, it is the perfect integration with the Spring Framework, Spring Boot Spring and other items, but the use of Dubbo, then we would assemble the various functions of the plug-in, which there may be an incompatible version and other issues, but SpringCloud would not assembled, not such a problem. The maximum difference SpringCloud REST using the HTTP based communication, whereas communication in RPC Dubbo , the RPC difference Rest: https://baijiahao.baidu.com/s?id=1617168792520937104&wfr=spider&for=pc ; http and tcp is the difference between: HTTPS: //www.cnblogs.com/xianlei/p/tcpip_http.html ; https://blog.csdn.net/weixin_38366182/article/details/80880530

VII. The relationship springBoot and SpringCloud

  1. springBoot focus on quick and easy development of a single individual micro service
  2. sringCloud is concerned about the overall coordination of services finishing micro governance framework, it will SpringBoot developed a micro-mer service integration and management together to provide configuration management between the various micro-services, service discovery, circuit breakers, routing, micro broker, events bus, global lock, decision-making campaign, distributed session etc. integration services

SpringBoot can leave SpringCloud independent use development project, but can not do without SpringCloud springboot, belonging to the dependency
SpringBoot focus on quick and easy development of a single individual micro-services, SpringCloud concerned about global governance framework service

Guess you like

Origin blog.csdn.net/wrs120/article/details/91446885