dyx27196280 opened a new issue, #5060:
URL: https://github.com/apache/servicecomb-java-chassis/issues/5060

   ### Steps to reproduce (if applicable)
   
   问题1:
   2.x中可以通过以下代码获取指定appid,serviceName的实例集合
   ````
   MicroserviceVersionRule microService = 
DiscoveryManager.INSTANCE.getAppManager().getOrCreateMicroserviceVersionRule(
           appId, serviceName, SERVICE_VERSION_RULE);
   Map<String, MicroserviceInstance> instanceMap = microService.getInstances();
   ````
   
   3.x中api变化,应该怎么替换实现相同的功能
   通过serviceCenterClient获取所有的微服务,然后再过滤,是否可行?或者有没有更好的平替方法?
   ```
   ServiceCenterClient serviceCenterClient = 
BeanUtils.getBean(ServiceCenterClient.class);
   List<Microservice> microserviceList = 
serviceCenterClient.getMicroserviceList().getServices();
   ```
   
   问题2:2.x中PolicyRuleItem可以通过getMatch().match()判断某个请求头的值是否符合正则,3.x中要怎么替换适配?
   问题3:2.x中MicroserviceCache.getInstance().getService()的替换方案
   
   ### What have you tried so far?
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
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]

Reply via email to