Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest to use HashedWheelTimer for timeout management #18

Open
mrniko opened this issue Mar 28, 2014 · 1 comment
Open

Suggest to use HashedWheelTimer for timeout management #18

mrniko opened this issue Mar 28, 2014 · 1 comment

Comments

@mrniko
Copy link

mrniko commented Mar 28, 2014

For thread amount optimization in case of usage many amount of Retryer objects i suggest to consider follow approach:

http://gborah.wordpress.com/2011/08/01/timeout-management-using-hashed-timing-wheels/

Most modern implementation of HashedWheelTimer is here - https://github.com/netty/netty/blob/26415b8f4cac2e9e65ea1a3919f4acb8ca687616/common/src/main/java/io/netty/util/HashedWheelTimer.java

@rholder
Copy link
Owner

rholder commented Mar 28, 2014

I like this idea. The current implementation of an AttemptTimeLimiter using SimpleTimeLimiter can be fairly wasteful with respect to resources. This would make a great pull request. (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants