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

Allow optimistic lock in POST (update) API for previous version check #6

Open
neeraj9 opened this issue Oct 23, 2018 · 0 comments
Open

Comments

@neeraj9
Copy link
Owner

neeraj9 commented Oct 23, 2018

At present the APIs for both details and links overwrite the existing content unconditionally. This strategy might seem useful for most of the cases, but there are situations when application wants to validate against the version it read before making that change. This optimistic lock by application will give more control towards maintaining consistency in the event of simultaneous writes.

This has direct impact on indexing when the new content has index changes.
Since there is no mechanism to allow rollback, so it is tricky how this lock
will be eventually implemented. Note that any change in indexes is executed first
before making change to the detail information. Having said that in case of failure
to update due to optimistic lock would break indexes and would not be possible
for a rollback.

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

No branches or pull requests

1 participant