Article Directory
- "4.1.1 Dubbo Source Code Guided Reading Ideas"
- "4.1.2 ServiceBean Object of Spring Framework Integration Analysis"
- "4.1.5 Spring Framework Integration Dubbo Component Life Cycle"
- "4.1.7 Dubbo Service Export Analysis"
- "4.1.8 Single Agreement Form Registration Center Export Process"
- "4.1.9 Single Registration Center and Single Agreement Registration Process"
- "4.1.10 Generation of Proxy Objects for Service Consumers"
- "4.1.11 Dubbo complete call link analysis"
"4.1.1 Dubbo Source Code Guided Reading Ideas"
- 5 points + Specify the source code file for the package in Maven (note that the source code does not change the line number)
"4.1.2 ServiceBean Object of Spring Framework Integration Analysis"
"4.1.5 Spring Framework Integration Dubbo Component Life Cycle"
2 20 DubboLifecycleComponentApplicationListener uses Spring's event mechanism:
@Override
protected void onApplicationContextEvent(ApplicationContextEvent event) {
if (event instanceof ContextRefreshedEvent) {
onContextRefreshedEvent((ContextRefreshedEvent) event);
} else if (event instanceof ContextClosedEvent) {
onContextClosedEvent((ContextClosedEvent) event);
}
}
// 当spring容器启动的时候的时候执行
protected void onContextRefreshedEvent(ContextRefreshedEvent event) {
initLifecycleComponents(event); // 初始化 - 找到所有需要进行生命周期管理的bean
startLifecycleComponents(); // 循环调用他们的start方法
}
"4.1.7 Dubbo Service Export Analysis"
- 13 30 The unified URL model in Dubbo:
"4.1.8 Single Agreement Form Registration Center Export Process"
- 9 20 arthas tools
- 30 25 The underlying network framework defaults to netty
- Dubbo frame design from official
"4.1.9 Single Registration Center and Single Agreement Registration Process"
- 9 40 Overall process:
"4.1.10 Generation of Proxy Objects for Service Consumers"
- 9 40 Create a proxy object:
"4.1.11 Dubbo complete call link analysis"
- 30 10 The request object is passed, and the CompletableFuture object is returned
- 54分 future.whenComplete
- 73 40 Asynchronous to synchronous: