Dubbo introduction and service architecture analysis

  Dubbo is a high-performance and excellent service framework open sourced by Alibaba , which enables applications to realize the output and input functions of services through high-performance RPC, and can be seamlessly integrated with the Spring framework. Use zookeeper as a service registry to provide external services

RPC: Remote procedure call realizes remote communication and is a service-oriented architecture (SOA)

Three ways of remote communication:

1. The webservice method, based on the soap protocol, has the disadvantage that the efficiency is not high

2. Use restful services: http+json. If there are too many services, the calling relationship between services will be chaotic, which is not conducive to maintenance.

3. Use dubbo: use rpc protocol to make remote calls and directly use socket communication, which is highly efficient, and can count the calling relationship and number of calls between services, so as to solve the problem of confusing calls between restful services

 

single application architecture 

When the website traffic is small, only one application is needed, and all functions are deployed together to reduce deployment nodes and costs.

At this point, a data access framework (ORM) that  simplifies CRUD workloads is key.

Vertical Application Architecture 

When the number of visits gradually increases, the acceleration brought by adding a single application to the machine is getting smaller and smaller, and the application is divided into several applications that are not related to each other to improve efficiency.

At this point, a web framework (MVC)  for accelerating front-end page development is key.

Distributed Service Architecture 

When there are more and more vertical applications, the interaction between applications is inevitable. The core business is extracted as an independent service, and a stable service center is gradually formed, so that front-end applications can respond more quickly to changing market demands.

At this time, the distributed service framework (RPC)  for improving business reuse and integration is the key.

Mobile Computing Architecture 

When there are more and more services, problems such as capacity evaluation and waste of small service resources gradually appear, a dispatch center needs to be added to manage the cluster capacity in real time based on the access pressure to improve the cluster utilization.

At this point, a Resource Scheduling and Governance Center (SOA)  for improving machine utilization is key.

 To sum up one sentence: Dubbo is a management tool for resource scheduling and governance centers .

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324673750&siteId=291194637
Recommended