In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "what is the dubbo configuration class relationship". In daily operation, I believe many people have doubts about what is the dubbo configuration class relationship. The editor consulted various materials and sorted out simple and easy operation methods. I hope to help you answer the doubts about "what is the dubbo configuration class relationship"! Next, please follow the small series to learn together!
Configuration Relationship
Class specification:
ApplicationConfig application configuration, which configures information about the current application, regardless of whether the application is a provider or consumer.
RegistryConfig registry configuration, used to configure information about the connection registry.
ProtocolConfig protocol configuration, used to configure the protocol information of the service provided. The protocol is specified by the provider and passively accepted by the consumer.
ServiceConfig service configuration, used to expose a service, define the meta-information of the service, a service can be exposed by multiple protocols, a service can also be registered to multiple registries.
· ProviderConfig provider default values, which are used when ProtocolConfig and ServiceConfig properties are not configured.
ReferenceConfig reference configuration, used to create a remote service proxy, a reference can point to multiple registries.
ConsumerConfig Consumer default configuration, which is used when a ReferenceConfig property is not configured.
MethodConfig method configuration for ServiceConfig and ReferenceConfig specifying method-level configuration information.
ArgumentConfig is used to specify method parameter configurations.
Configuration override
·In the above figure, timeout is taken as an example to show the search order of configuration, and other retries,loadbalance, activities, etc. are similar.
·Method level takes precedence, interface level takes precedence, and global configuration takes precedence.
·If the level is the same, the consumer takes precedence over the provider.
where the service provider configuration is passed to the consumer via a registry via URL.
·It is recommended that service providers set timeouts because they know better how long a method takes to execute, and if a consumer references multiple services at the same time, they do not need to care about timeouts for each service.
Theoretically, the non-service ID configuration of ReferenceConfig can be configured by default in ConsumerConfig, ServiceConfig, ProviderConfig.
Configuration Type:
Note: Only group, interface and version are matching conditions for services, which determine whether they are the same service. Other configuration items are tuning and governance parameters.
All configuration items are divided into three categories, see the "Role" column in the table below.
Service Discovery: Indicates that this configuration item is used for service registration and discovery, with the goal of enabling consumers to find providers.
·Service Governance: Indicates that the CI is used to govern relationships between services or to facilitate development testing.
Performance tuning: indicates that this configuration item is used to tune performance, and different options have an impact on performance.
All configurations will eventually be converted into URL representations, generated by the service provider, and passed to the consumer via the registry. For parameters of URL corresponding to each attribute, see the column "Corresponding URL Parameters" in the configuration item list.
At this point, the study of "what is the dubbo configuration class relationship" is over, hoping to solve everyone's doubts. Theory and practice can better match to help you learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.