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

[GitHub] [servicecomb-java-chassis] smalljunHw commented on issue #3724: 注册中心实例watch下,未合并短时间内的实例列表查询和更新请求,对注册中心可能存在较大的压力

smalljunHw commented on issue #3724:
URL: https://github.com/apache/servicecomb-java-chassis/issues/3724#issuecomment-1482151690

   1、为啥不可以呢?可以限制200ms内最多只有1次调用,而不限制,则等于被watch通知的事件数;
   2、时延最多有200ms,而不是n*200ms;200ms内的watch事件都会合并为同一个查询请求,而不是会往后排队。
   3、为啥不推荐用watch呢?目前我们使用比较多,可以解决及时通知实例变化的问题。不过合并一段时间内的多个watch事件进行,我认为是可以做的优化。尽管会增加一段时延,但可以通过配置项配置,且相对于周期查询任务导致的时延,是可以忽略的。


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