Microservices-Spring Cloud & Dubbo

  • Dubbo is an RPC framework. Service management integration is very complete. It not only provides service registration and discovery, load balancing, routing and other distributed cluster-oriented, development and testing, service management and monitoring visualization platform.
  • Spring Cloud, a one-stop solution under the microservice architecture, using Http Restful calling method between microservices: RestTemplate Feign. HttpRestful: It is lightweight and easy to use, and has strong applicability. It can easily cross languages ​​and platforms, or interact with existing systems.
  • Communication methods between applications: HTTP (SpringCloud) and RPC (Dubbo).

 

Asynchronous and message (data consistency)

Dubbo + Zookeeper and Spring Cloud made different choices for data consistency during service discovery.

  • The former uses Zookeeper as the registration center. For CAP theory [data consistency, service availability, and fault tolerance of services to network partition failures], Zookeeper guarantees CP.
  • The Eureka design follows the AP principle. It should be Eureka's design that for service discovery, service availability is more important than data consistency. So this trade-off is based on the actual business.
Published 952 original articles · praised 1820 · 890,000 views

Guess you like

Origin blog.csdn.net/Dream_Weave/article/details/105436860