You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/02/18 03:24:58 UTC

[GitHub] liubao68 commented on issue #1092: Use RestTemplate to request another micro service in dispatcher occurred Thread blocked VertxException

liubao68 commented on issue #1092: Use RestTemplate to request another micro service in dispatcher occurred Thread blocked VertxException
URL: https://github.com/apache/servicecomb-java-chassis/issues/1092#issuecomment-464568465
 
 
   Do not execute any blocking code in Distpatcher because it is executing in event-loop thread. This is the basic rule of reactive programming. 
   You can refer servicecomb demo : https://github.com/apache/servicecomb-java-chassis/blob/master/demo/demo-edge/edge-service/src/main/java/org/apache/servicecomb/demo/edge/service/handler/AuthHandler.java
   
   to learn how to do it reactively. 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services