RPC framework Dubbo

Dubbo is the earliest RPC framework developed by Alibaba to transform Taobao into microservices. Dubbo can be perfectly integrated with Spring. The various modules of the outdoor product marketing system implement interface calls through Dubbo. In Dubbo, it mainly contains Container (container that provides service operation), Provider (service provider), Consumer (consumer calling remote service), Monitor (service monitoring center that counts call time and number of calls), Register (registration center) These five roles.
Insert picture description here
Dubbo operating principle diagram

The principle of Dubbo is shown in the figure above. First, the Container is responsible for starting, loading, and running the Provider. Secondly, when the Provider starts, it registers the services it provides with the Register. Third, when the Consumer starts, it subscribes to Register the services it needs to call. Then, Register returns the address list of the service provider to the Consumer, and the Consumer selects an address from the address list returned by Register to call. If the call fails, select another address to call. Monitor is responsible for counting the call time and the number of calls by the server and the consumer.

Guess you like

Origin blog.csdn.net/qq_42918433/article/details/113921657