You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by Zhanhui Li <li...@apache.org> on 2020/05/14 03:14:08 UTC

[DISCUSS]Use timer-wheel to scan timeout of in-flight RPC

Hi,

To detect in-flight RPC timeout, RocketMQ uses scheduler to periodically
scan all in-flight RPC requests in NettyRemotingAbstract#scanResponseTable.
This implementation is less effective in terms of resource overhead and
responsiveness in comparison with timer-wheel
<https://blog.acolyer.org/2015/11/23/hashed-and-hierarchical-timing-wheels/>.
I am suggesting to implement the timer-wheel scheme.

Any feedback is welcome. ^_^

Zhanhui Li