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

Improve handling of concurrent actions in persistence layer #4527

Open
edmundoa opened this issue Jan 25, 2018 · 0 comments
Open

Improve handling of concurrent actions in persistence layer #4527

edmundoa opened this issue Jan 25, 2018 · 0 comments

Comments

@edmundoa
Copy link
Contributor

In order to avoid data inconsistencies, we need to improve our handling of concurrent actions in the persistence layer.

Currently there is no easy way of preventing concurrent actions to modify the same MongoDB document with unexpected consequences, as you can see in #4525. This is specially problematic when dealing with embedded documents, as the same document may be updated more often and only partially. In the best case this situation may lead to an action being reverted (as it is the case in the example), but this could potentially lead to data inconsistencies, specially when other parts of the system react to those data changes.

This is a complex topic and we need to analyse it and look for a solution that help us avoiding this kind of problem in the whole persistence layer, so I want to open this issue here and we can update it once we have some ideas and know how to solve the issue.

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

No branches or pull requests

1 participant