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
Synchronized consume method in AbstractCacheRateLimiter impact performance #96
Comments
@addozhang |
But in |
Hi, @addozhang we recently changed the code in #108 and it should has better performance. |
Closing due inactivity |
@lchayoun Why you think remove |
@Fangfeikun Let me answer it. |
@lchayoun Sorry for late reply. |
@addozhang How do you solve this? remove synchronized key word has any problem? |
@taxus1 yes, by removing |
@addozhang thanks |
Currently we are using 1.7.2 which is similar with
AbstractCacheRateLimiter
in latest version. The repository we use is redis.We did performance test. With 1.7.2, the TPS is
600+
. After removesynchronized
, it is up to2000+
.In
AbstractCacheRateLimiter
, it has asynchronized
method. In redis implementation, there is no object shared among threads. This method is invoked by each incoming request.The text was updated successfully, but these errors were encountered: