Interview series of works 22 dubbo

(1) dubbo works

 

The first layer: service layer, the interface layer, to the service providers and consumers to achieve

The second layer: config layer disposed layer, mainly for various configurations dubbo

The third layer: proxy layer, a service agent layer, a transparent generating client stub and skeleton service ticket

The fourth layer: registry layer, service layer registration, responsible for service registration and discovery

Fifth layer: cluster layer, a cluster layer, a plurality of service providers package routing and load balancing, multiple service instances are combined into a

Sixth layer: monitor layer, control layer, on the number of calls and call times rpc interface monitor

Seventh layer: protocol layer, remote call level, packaging rpc call

Eighth Layer: exchange layer, an exchange of information layers, encapsulating a request response mode, synchronous asynchronous transfer

Ninth layer: transport layer, network transport layer, mina abstract and unified interface to netty

Tenth Layer: serialize layer, a data layer sequence

 

work process:

 

1) The first step, provider to the registration center to register

2) The second step, consumer subscription service from the registry, the registry will notify the registered consumer good service

3) The third step, consumer call provider

4) The fourth step, consumer and provider are asynchronous notification monitoring center

 

(2) hung up the registry may continue to communicate it?

 

Yes, since the beginning of the initialization time, consumers will be the provider of address and other information pulled into the local cache, so the registry can continue to communicate hung up

Guess you like

Origin www.cnblogs.com/xiufengchen/p/11259198.html