ratis
ratis copied to clipboard
RATIS-1530. Cleanup NettyClientStreamRpc#replies empty queue optimize
What changes were proposed in this pull request?
Cleanup NettyClientStreamRpc#replies empty queue optimize
I can use the Netty scheduleAtFixedRate periodic scheduling cleanup empty queue
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/RATIS-1530
What do you think of this feature? @szetszwo
@guohao-rosicky , it seems that we won't get much benefit when optimizing the case when the queue is empty (i.e. when there are no requests.)
Also, running tasks in the background actually may make the worst case (when there are many requests) more worst. What do you think?
After RATIS-1550, this is no longer a problem. Closing this.