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

PIPRES-319: Lock process adapter #839

Conversation

mandan2
Copy link
Contributor

@mandan2 mandan2 commented Nov 8, 2023

Wrapper for Symfony lock mechanism to support PS 1.7 and 8.

Main idea was to let process have only one active lock during one instance lifetime.

Added tests for basic exception lookout and one test for actual usage if another instance process is being rejected from locking.

Used burp suite and turbo intruder to do parallel requests. Based on results processes are blocked till the lock acquired one finishes process.

image

@mandan2 mandan2 self-assigned this Nov 8, 2023
@mandan2 mandan2 merged commit 8d7b716 into PIPRES-319-atomic-process-for-controllers Nov 13, 2023
5 checks passed
@mandan2 mandan2 deleted the PIPRES-319-lock-process-adapter branch November 14, 2023 08:06
mandan2 added a commit that referenced this pull request Nov 14, 2023
* PIPRES-319: Lock process adapter (#839)

* PIPRES-319: Webhook controller protection (#841)

* PIPRES-319: Webhook controller protection

* phpstan and test fix

* warning fix

* stan fix

* webhook thrown exception improvements

* removed comment

* csfixer
JevgenijVisockij pushed a commit that referenced this pull request Jan 16, 2024
* PIPRES-319: Lock process adapter (#839)

* PIPRES-319: Webhook controller protection (#841)

* PIPRES-319: Webhook controller protection

* phpstan and test fix

* warning fix

* stan fix

* webhook thrown exception improvements

* removed comment

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

Successfully merging this pull request may close these issues.

2 participants