spring boot dubbo

spring boot dubbo learning

 

question:

 

1: How is the implementation of RPC implemented?

Core class: ReferenceConfig.createProxy() creates proxy classes and obtains the order of proxy proxy classes: 

 
  1. 1.如果没有url指定:
  2. 1:查找本地是否有接口
  3. 2.是否是url直连:
  4. 3.是否是注册中心连接:
  5. 配置文件加载:
  6. 1:配置文件获取。
  7. 2:环境变量("dubbo.registry.address")获取

The first step is to generate the proxy class. The second part, when the method is called, sends information to the actual execution class through the proxy class, and then waits for the return result to be encapsulated into its own return result. The implementation mechanism of rpc finally uses the concept of jdk's dynamic proxy. 
 

 

2: How many ways are there for dubbo's data transmission?

By default implementation: 

 

3: The processing mechanism of dubbo transactions.

 

4: How to load the dubbo client configuration file from the resource file of spring boots?

 

5. Dubbo's distributed server processing

 

6. Filter application scenarios and examples.

The LoadBalance interface performs different elections according to the policy. Check the initialization of the class 

 

Extended thinking:

 

1. How is JDK's dynamic proxy implemented?

The referenced article http://blog.csdn.net/mhmyqn/article/details/48474815 The above article talks about the specific logic of proxy class generation, but how is the association between proxy class and remote implementation class realized? The proxy class just returns the remote calling interface to the caller through itself 
 
 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327038399&siteId=291194637