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

Implementer optimistic concurrency control #109

Closed
2 tasks
Tracked by #29
elsand opened this issue Jul 2, 2023 · 0 comments
Closed
2 tasks
Tracked by #29

Implementer optimistic concurrency control #109

elsand opened this issue Jul 2, 2023 · 0 comments

Comments

@elsand
Copy link
Member

elsand commented Jul 2, 2023

Vi trenger å støtte en form for optimistic concurrency control ved PUT / PATCH / DELETE for å sikre robust read-modify-write -støtte sett fra et API-perspektiv. Dette er for å detektere at noe er blitt endret i mellomtiden (altså fra en ressurs er lest til den forsøkes skrives på nytt).

Her er det flere muligheter, f.eks. bruk av If-Unmodified-Since, men løsningen som gir best fleksibilitet på serversiden og er enklest for klientsiden å forholde seg til er ETags.

Det legges til grunn en implementasjon som sjekker dette i databasen, ref https://learn.microsoft.com/en-us/ef/core/saving/concurrency?tabs=data-annotations#application-managed-concurrency-tokens

Tasks

Preview Give feedback
@elsand elsand closed this as completed Dec 6, 2023
@elsand elsand added this to the Klar for ekstern testing milestone Mar 19, 2024
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