-
Notifications
You must be signed in to change notification settings - Fork 4
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
Is it concurrency safe? #2
Comments
Hi! Thanks for reviewing the code. You are totally right! If the Do you have any suggestion to fix this issue? What about:
|
Updated per below comments to avoid mis read. |
Referring Brandur blog post about idempotency
So yes, it makes the app single threaded for each different idempotency key, which seems ok to me! |
Actually yeah, you're right. |
I can fix this with a pr if you are ok with it |
laravel-idempotency/src/Idempotency.php
Lines 31 to 37 in c40b126
^ This does not look concurrency safe. I.e. multiple requests at once with same request id will actually execute it twice.
I wanted to understand if you think that is not a practical case at all and hence intentionally not handled.
The text was updated successfully, but these errors were encountered: