You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/11/18 02:25:44 UTC

[GitHub] [dubbo] AlbumenJ commented on issue #10946: URL code optimization

AlbumenJ commented on issue #10946:
URL: https://github.com/apache/dubbo/issues/10946#issuecomment-1319464851

   1. The role of many repeated attributes in the URL is to improve performance, and to get the ultimate performance experience by exchanging space for time
   2. `InstanceAddressURL` is a highly reusable object, which greatly reduces memory usage by sharing one object with multiple targets. See https://dubbo.apache.org/zh/docs3-v2/java-sdk/concepts-and-architecture/service-discovery/
   3. URLs are currently divided into `ServiceConfigURL` for configuration and `DubboServiceAddressURL` and `InstanceAddressURL` for recording server information according to usage scenarios. There will be a `consumerURL` attribute for configuring read priority configuration for recording server information. The difference between `DubboServiceAddressURL` and `InstanceAddressURL` is mainly at the interface level and application level.
   4. Based on the above situation, I think our more feasible way is to completely empty the URL into a strict interface, and let `ServiceConfigURL`, `DubboServiceAddressURL`, and `InstanceAddressURL` implement all functions correspondingly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org