You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/03/14 01:30:48 UTC

[GitHub] liubao68 commented on issue #592: ������������������������������������������������������������������������������������������������������������������������������������������������������������������

liubao68 commented on issue #592: 【请关注】服务消费者调用服务提供者接口时,目前缺少接口级别或者动态的超时设置能力,无法满足服务接口差异化诉求
URL: https://github.com/apache/incubator-servicecomb-java-chassis/issues/592#issuecomment-372874403
 
 
   这个问题更像是一个复杂业务场景的解决方案。有些问题时需要深入讨论的。结合上面的描述,个人的一些建议:
   1. 你给的三种尝试方案(1)/(2)是靠普的解决方案。期望的解决方案是不靠普的。获取好的用户体验,业务代码需要深入解决这两个方案碰到的问题。简单场景通常没问题,系统高负载或者资源少的情况下,还需要配合更加高级的一些措施,比如限流, 扩容等满足基本的服务质量。
   2. 期望值为什么不靠普由几个建议: 服务端对于业务代码的超时是无法进行有效处理的(终止线程???),一般不存在超时的说法。客户端超时网络层的处理会增加检测成本,应用层使用hystrix组件之类的也可以做到,不过面对和服务端一样的问题,超时后的资源如何回收问题。

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