Dubbo Service provider exposes a detailed process of a service __ source

Source: Internet
Author: User
Remote Call Details:

The detailed process by which a service provider exposes a service:

The above illustration is the main process by which a service provider exposes a service:
First the ServiceConfig class gets the actual class ref for the external service, and then the Getinvoker method of the Proxyfactory class uses ref to generate a Abstractproxyinvoker instance. To this step to complete the specific services to the Invoker transformation. The next step is the process of invoker conversion to exporter.
The key to Dubbo processing service exposure is the process of converting invoker to exporter, which is illustrated by the implementation of two typical protocols, Dubbo and RMI:
Implementation of Dubbo:
The invoker of the Dubbo protocol to exporter occurs in the Dubboprotocol class of the export method, which mainly opens the socket listening service and receives various requests from the client, and the communication details are realized by Dubbo.
Implementation of RMI:
The invoker of the RMI protocol is converted to exporter occurring in the Rmiprotocol class, where he implements the service through spring or Dubbo or JDK, and the communication details are implemented by the JDK bottom.

The detailed process of service consumers consuming a service

The figure above is the main process of service consumption:
First, the Referenceconfig class's Init method invokes the protocol refer method to generate the Invoker instance. Next, turn Invoker into the interface that the client needs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.