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 2020/05/27 12:22:07 UTC

[GitHub] [servicecomb-java-chassis] zhufeizzz opened a new issue #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?

zhufeizzz opened a new issue #1785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1785


   比如原来有两个服务,分别提供两个接口:
   cse://service-a/rest/do-something-a/
   cse://service-b/rest/do-something-b/
   
   因为架构整改需要合并service-a和service-b,有办法通过注册路由的方式无缝兼容吗?


----------------------------------------------------------------
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 #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?

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


   如果可以改客户端代码(重新编译,但是对使用者透明,也算修改客户端代码), 我觉得最好的办法就是让客户端排查下,把服务名字改下。 
   
   这种场景核心要解决的是独立升级的问题,即要求服务端升级不影响客户端功能。这个目前看就只有先老的两个服务不下线, 新服务上线, 然后通知使用者变更,给使用者修改周期,当使用者都修改完成后,将老服务下线即可。 
   
   
   


----------------------------------------------------------------
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] zhufeizzz commented on issue #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?

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


   @liubao68 
   如果我可以定制Client端代码,我需要用哪种扩展来实现自定义路由呢?我看例子里只是用SpringBoot变量来动态设置,这种对Client会有侵入。


----------------------------------------------------------------
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 #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?

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


   这种情况客户端必须修改服务名称,或者需要在客户端做一些其他额外的处理,将老名称映射到新名称,这两种处理策略按照上面的要求都是不兼容的。 
   
   唯一的办法就是服务发现能够继续发现 service-a, service-b, 并把地址指向合并的服务xxx。 这个方案是复杂的,而且容易出错。
   
   java-chassis/demo/demo-multiple有个很好的例子尽可能减少合并后客户端的修改, 但仍然做不到兼容。 
   
   


----------------------------------------------------------------
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 #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?

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


   没有标准化的方式进行这样的扩展,但是应该可以做到的, 方案会显得非常难看和难于维护, 所以就不能给你推荐方案了。 正如我前一个回复的说明,`如果可以改客户端代码(零代码修改,对使用者透明,但是需要重新编译,也算修改客户端代码), 我觉得最好的办法就是让客户端排查下,把服务名字改下。`


----------------------------------------------------------------
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] zhufeizzz closed issue #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?

Posted by GitBox <gi...@apache.org>.
zhufeizzz closed issue #1785:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1785


   


----------------------------------------------------------------
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] zhufeizzz commented on issue #1785: 现在ServiceComb是否能支持动态路由注册,以支持服务的重构?

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


   @liubao68 
   我的意思是说能否通过ServiceComb扩展的方式实现,而不是直接修改ServiceComb源码。


----------------------------------------------------------------
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