Introduction to RPC Framework Dubbo

On the whole, the evolution process of a company's business system is basically from a single application to multiple applications. In a single application, the mutual calls of different business modules can be completed directly in the local JVM process, and when it becomes multiple applications , the way to communicate with each other cannot simply make local calls, because different business modules are deployed in different JVM processes, and more commonly deployed in different machines. At this time, an efficient/stable RPC remote calling framework becomes very important.

 

Dubbo is an open source high-performance remote service invocation framework developed by Alibaba, dedicated to providing high-performance and transparent RPC remote invocation service solutions. As the core framework of Alibaba's SOA service-based governance solution, it has now entered Apache The eggplant project has a bright future.

 

If you want to do good work, you must first sharpen your tools. To study the principle implementation of Dubbo, you first need to use Dubbo to build a distributed system. The research plan is mainly divided into the following four parts:

1. Use Dubbo to build a system in three different mainstream environments, including using Spring configuration and Dubbo API to build, and using annotations to build service providers and consumers based on SpringBoot and dubbo-spring-boot-starter. Although this system is simple, it includes service provider/service consumer/service registry (using Zookeeper)/admin console (Dubbo-Admin)/monitoring platform (Dubbo-Monitor).

2. What are generalized calls and asynchronous calls on the service consumer side, and how to use generalized calls and asynchronous calls on the server side.

3. Analyze Dubbo's system architecture as a whole, and explain the implementation principle of JDK standard SPI and how Dubbo implements enhanced SPI, how to implement extended implementation classes to enhance functions. What cluster fault tolerance methods Dubbo provides, and learn the implementation of Failover cluster fault tolerance principle.

Then learn about the load balancing strategies provided by Dubbo, and explain the principle of consistent Hash load balancing strategies, which thread models Dubbo provides, how to customize the configuration, etc. Finally, explain how the service provider starts and publishes services to the test center. , How does the service consumer obtain the service address list from the service registry and initiate a remote call.

4. Matters needing attention during the Dubbo process.

 

Guess you like

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