yhs0092 commented on issue #1619: cse是否支持schemaId或mappath粒度的契约注册控制
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/1619#issuecomment-595643322
 
 
   
对于ServiceComb体系下的微服务而言,一个微服务的版本确定时,它的接口也是确定的。所以同一个微服务同一个版本的实例分两拨,一拨注册这些接口契约,另一拨注册那些接口契约,这种事情在ServiceComb的概念下是说不通的。
   
   
最终要怎么解决问题取决于你是怎么看待这两个集群中的服务的。如果因为环境不同,它们就是提供不同的功能的,那么可能改一下微服务名字,保证两个集群里的实例分属于不同名的两个微服务可能更好一些。让客户端分别调用。
   
   
如果这种不一致只是暂时的,你也可以考虑使用Java-Chassis的负载均衡模块自带的[根据实例属性进行路由转发](https://docs.servicecomb.io/java-chassis/zh_CN/references-handlers/loadbalance/)功能。

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to