"Chapter 4 Service-oriented Cluster Management Dubbo High-level Practical Combat" in "Special Topic Four Service-oriented Transformation" "Section One Dubbo Source Code 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)
    Insert picture description here

"4.1.2 ServiceBean Object of Spring Framework Integration Analysis"

Insert picture description here

"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:
    Insert picture description here

"4.1.8 Single Agreement Form Registration Center Export Process"

"4.1.9 Single Registration Center and Single Agreement Registration Process"

  • 9 40 Overall process:
    Insert picture description here

"4.1.10 Generation of Proxy Objects for Service Consumers"

  • 9 40 Create a proxy object:
    Insert picture description here

"4.1.11 Dubbo complete call link analysis"

Insert picture description here

  • 30 10 The request object is passed, and the CompletableFuture object is returned
  • 54分 future.whenComplete
  • 73 40 Asynchronous to synchronous:
    Insert picture description here

Guess you like

Origin blog.csdn.net/qq_23204557/article/details/112690522