[ 
https://issues.apache.org/jira/browse/SCB-986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16683966#comment-16683966
 ] 

ASF GitHub Bot commented on SCB-986:
------------------------------------

wujimin commented on a change in pull request #990: [SCB-986] Cache instances 
result in CseDiscoveryClient
URL: 
https://github.com/apache/servicecomb-java-chassis/pull/990#discussion_r232708321
 
 

 ##########
 File path: 
spring-boot-starter/spring-boot-starter-discovery/src/main/java/org/apache/servicecomb/springboot/starter/discovery/CseDiscoveryClient.java
 ##########
 @@ -44,23 +46,62 @@ public String description() {
 
   @Override
   public List<ServiceInstance> getInstances(final String serviceId) {
+
+    class InstanceDiscoveryFilter implements DiscoveryFilter {
+
+      @Override
+      public int getOrder() {
+        return Integer.MAX_VALUE;
 
 Review comment:
   should give a change to filter List<ServiceInstance>
   so set order to be max int is not a good idea
   we can set it to be: (int) Short.MAX_VALUE;

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> ServerInstances can be cached in spring-boot2-starter-discovery
> ---------------------------------------------------------------
>
>                 Key: SCB-986
>                 URL: https://issues.apache.org/jira/browse/SCB-986
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Java-Chassis
>    Affects Versions: java-chassis-1.1.0
>            Reporter: Yang Bo
>            Assignee: Yang Bo
>            Priority: Minor
>
> ServerInstances can be cached in spring-boot2-starter-discovery and 
> spring-boot-starter-discovery



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to