-
Notifications
You must be signed in to change notification settings - Fork 81
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
lock fail frequently #107
Comments
Hi, I don't know what's causing your race condition but I think you can.
|
@wikimo I guess you have too small @leandromoreira I feel that using
|
Thanks for your help! I will try them. @leandromoreira @bguban |
@leandromoreira Sorry to bring this up so much later. But what is the recommended way of using the client. Is a constant preferred? |
Scence:
Use redlock to lock product record when reduce the stock number. code like that:
When high concurrency level (like more than 2000 - 5000 request/s), product_lock fail frequently.
We don't want to use the database lock, because it will make deadlock sometime. And we also use the retry setting, but not go well.
What should we do ? Thanks for your help!
The text was updated successfully, but these errors were encountered: