wujimin commented on issue #1107: 【咨询】在自定义的handle里通过CseAsyncRestTemplate发送请求会是一个死循环吗? URL: https://github.com/apache/servicecomb-java-chassis/issues/1107#issuecomment-466859168 default handler chain: h1,h2,h3 when microservice-a invoke microservice-b, will execute h1->h2->h3 in h2, invoke microservice-c, still will execute h1->h2->h3 so, yes, it's a infinite loop. you can choose one of the solution: - give a special chain for microservice-c in microservice.yaml, eg: ``` handler: chain: Consumer: default: h1,h2,h3 service: microservice-c: h1,h3 ``` - do not invoke microservice-c in h2 when target is microservice-c ``` if (invocation.getMicroserviceName().equals("microservice-c")){ invocation.next(asyncResp); return; } ```
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services