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

Add a mechanism to prevent update races #108

Open
mike-marcacci opened this issue Jan 29, 2020 · 0 comments
Open

Add a mechanism to prevent update races #108

mike-marcacci opened this issue Jan 29, 2020 · 0 comments

Comments

@mike-marcacci
Copy link
Member

Like most CRUD APIs, this API doesn't have any concept of SQL-like "transactions" that can hold locks on the state while the application does its thing. Because of this there's always the risk of unintentionally clobbering a concurrent change when a write is conditional on a prior read.

This can be alleviated by adding an optional fromRecordId field to all "update" operations. When set, AuthX can ignore

This depends on #33 and #73.

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