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 mainly explains "what are the knowledge points of Dubbo". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "what are the knowledge points of Dubbo"?
Through this preliminary study of the source code of Dubbo SPI
I know that Dubbo implements a simple IOC container through ExtensionLoader
Through the decorator pattern, the function similar to AOP is realized.
From this, we can't help but find that in the development of any software or framework,
It is necessary to set aside the entire life cycle of the object and the hooks before and after the life cycle to facilitate subsequent expansion, perhaps a hook or a chain extension.
RegistryProtocol can be considered not a real protocol.
He is the dubbo of these practical agreements. Rmi) Packers
In this way, at the beginning of the request from the client, if there is no information from the server,
The registration information of the service will be pulled from the registry first.
And then connect directly to the server, which is very important.
Because in our company, the information is routed and forwarded through the registry.
URL protocol headers are different
RegistryProtocol is identified by URL's registry:// protocol header
DubboProtocol is identified by URL's dubbo:// protocol header
In ServiceConfig or RefrenceConfig, based on the extension point adaptation mechanism, the corresponding Protocol will be found for publishing and referencing.
Registry type Invoker will not be intercepted by Filter, and the actual protocol Invoker will be intercepted.
Dubbo protocol
Description: the so-called magic value refers to the value that appears directly in the code, and its meaning can be clearly understood only in the part of the code described by this value.
Hession2: binary serialization protocol
After reading this agreement, I may understand why it is a little more efficient than http.
The request header is small and there is no additional information.
The codec of http is done by the http server.
Our application server does another codec (such as json) before it is added to our jvm.
And dubbo generally does not need secondary coding, directly encode binary, and then transmit.
At this point, I believe you have a deeper understanding of "what are the knowledge points of Dubbo?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.