zrlw commented on issue #13298:
URL: https://github.com/apache/dubbo/issues/13298#issuecomment-1790106729

   主要是需要将源集群的接口名到应用名映射关系同步到目标集群,只同步应用级别服务实例,目标集群的dubbo消费端无法确定要访问哪个应用服务实例。
   比如源集群的服务实例如下(只有应用级别的):
   
![image](https://github.com/apache/dubbo/assets/40652892/f068b0d5-56e8-4bc2-8a19-8f8f4ef9624c)
   
   注册中中心相关的映射关系元数据(dataId为接口名,内容为应用名):
   
![image](https://github.com/apache/dubbo/assets/40652892/e6ce1a02-b194-4820-a302-a1a313e94ca0)
   
   
nacos-sync同步任务配置的是实例名(比如上面图中的helloTestApp),从源集群的nacos注册中心拉取的实例信息里并没有接口信息,所以并不知道要同步哪些mapping到目标集群。
   源集群的mapping数据里可能有废弃的元数据,比如已经不再用的旧接口com.test.old.OldApi 
映射到了helloTestApp应用,通过遍历所有mapping逐个比对内容的方式不仅性能差,而且也会将这些废弃旧接口传播到目标集群。


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to