In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail the working principle of Dubbo and the process of RPC request, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
How dubbo works
The first layer: service layer, interface layer, for service providers and consumers to implement
The second layer: config layer, configuration layer, mainly for various configurations of dubbo
The third layer: proxy layer, service agent layer, both consumer and provider,dubbo will generate agents for you, and agents will communicate with each other on the network.
The fourth layer: registry layer, service registration layer, responsible for service registration and discovery
Layer 5: cluster layer, clustering layer, routing and load balancing encapsulating multiple service providers, combining multiple instances into a single service
The sixth layer: monitor layer, monitoring layer, monitoring the number and time of calls to the rpc interface.
Layer 7: protocal layer, remote call layer, encapsulating rpc calls
Layer 8: exchange layer, information exchange layer, encapsulated request response mode, synchronous to asynchronous
Layer 9: transport layer, network transport layer, abstract mina and netty as unified interfaces
Layer 10: serialize layer, data serialization layer
Work flow
Step 1: provider registers with the registry
Step 2: consumer subscribes to the service from the registry, which notifies consumer of the registered service
Step 3: consumer calls provider
Step 4: both consumer and provider notify the monitoring center asynchronously
Can I continue to communicate when the registry is dead?
Yes, because at the beginning of initialization, consumers will pull information such as the address of the provider to the local cache, so the registry can continue to communicate when it is hung up.
About the working principle of Dubbo and how the RPC request process is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.