Problem with MySQL when trying to consume #413
Unanswered
sonofsounds
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@sonofsounds You can just copy it to your project and add more logs, just modify each method of SelectForUpdateBasedTransaction for collect time of operation https://github.com/bucket4j/bucket4j/blob/master/bucket4j-mysql/src/main/java/io/github/bucket4j/mysql/MySQLSelectForUpdateBasedProxyManager.java#L82C20-L82C51 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am building a Java application using SpringBoot and I have the following problem when using MySQLSelectForUpdateBasedProxyManager. I created an endpoint "/rate-limiter" whose primary purpose is to rate limit per API key.
The problem is that the
tryConsumeAndReturnRemaining
method takes too much time to respond. (5-6 seconds). I will attach the code below:The dataSource comes with Spring Boot and it is Hikari.
What could be the problem? @vladimir-bukhtoyarov
Beta Was this translation helpful? Give feedback.
All reactions