You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "hypggg (via GitHub)" <gi...@apache.org> on 2023/02/07 12:32:24 UTC

[GitHub] [servicecomb-java-chassis] hypggg opened a new issue, #3625: Are there some api which can get microService provided api

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

   1、In my project , there is a routing service, that forwards requests to corresponding microservices ,Now I need to configure the apis opened by each microservice. like this:
   "/a/a1" ->Service A ,"/a/a2" -> ServcieA ; "/b/b1"->ServiceB, "/a/b2"->"ServiceB";
   whe request path is "/a/a1", I get the microServiceName is "ServiceA", then dispatch the request to "ServiceA"
   `EdgeInvocation edgeInvocation = new EdgeInvocation();
   edgeInvocation.init(microServiceName, context, path, null);
   edgeInvocation.edgeInvoke();`
   
   2、 I want to obtain the apis opened by each microservice from the service center. like :
   ServiceA:["/a/a1","/a/a2"]; ServiceB:["/b/b1","/a/b2"];
   In this way, I do not need to configure the apis opened by each microservice.


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] hypggg commented on issue #3625: Are there some api which can get microService provided api

Posted by "hypggg (via GitHub)" <gi...@apache.org>.
hypggg commented on issue #3625:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3625#issuecomment-1429240736

   Thank you. It's a better solution to define prefixes for each service based on resources.


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #3625: Are there some api which can get microService provided api

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #3625:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3625#issuecomment-1423506782

   May be you can use `servicecomb.service.paths` to register service prefix and get all microservice info use service center API. I am not tried this. 
   
   However, I do not think this could be a good solution, because you need query all microservices information, event some services do not need forward from edge service. 
   


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [servicecomb-java-chassis] hypggg closed issue #3625: Are there some api which can get microService provided api

Posted by "hypggg (via GitHub)" <gi...@apache.org>.
hypggg closed issue #3625: Are there some api which can get microService provided api
URL: https://github.com/apache/servicecomb-java-chassis/issues/3625


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org