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/06/23 02:51:20 UTC
[GitHub] [servicecomb-java-chassis] wujimin commented on issue #2429: 有2个provider,当某个provider出现网络时延时,2个provider的吞吐量都下降了,是什么机制导致的吗?
wujimin commented on issue #2429:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2429#issuecomment-866480720
```
jmeter -> consumer -> provider 1/2
```
如果是这个流程
consumer首先是一个provider,默认使用一个共享线程池处理所有请求
收到请求后,再 **同步** 调用后面的provider,此时会阻塞当前线程等待provider应答,这个“当前线程”,就是共享线程池里的线程
所以,某个provider慢,会影响整体速度
所有的同步调用,都会面临这种问题,要彻底解决,业务需要从同步改为异步方式调用后面的provider
--
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