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 2021/03/24 06:58:13 UTC

[GitHub] [servicecomb-java-chassis] tiger-super opened a new issue #2312: 关于网关

tiger-super opened a new issue #2312:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2312


   请问一下网关是否可以跨应用调用,如果可以那么代码怎么写


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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2312: 关于网关

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2312:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2312#issuecomment-805789399


   你指网关跨应用调用别人,还是别人调用网关? 
   
   跨应用调用别人,路由规则里面的“服务名”使用"应用名:服务名"即可。 


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



[GitHub] [servicecomb-java-chassis] tiger-super commented on issue #2312: 关于网关

Posted by GitBox <gi...@apache.org>.
tiger-super commented on issue #2312:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2312#issuecomment-806302254


   > 你指网关跨应用调用别人,还是别人调用网关?
   > 
   > 跨应用调用别人,路由规则里面的“服务名”使用"应用名:服务名"即可。
   
   网关的应用与要调用的微服务应用是不一样的,在AbstractEdgeDispatcher实现类里怎么实现


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



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #2312: 关于网关

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #2312:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2312#issuecomment-806513962


   我理解应该不用做什么处理, DefaultEdgeDispatcher 就可以支持到转发到不同的应用的实例。 只不过URL的服务名要包含应用名称。比如:  http://IP/app:service/xxx


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