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

optimistic create / update / patch / remove #7

Open
ahdinosaur opened this issue Apr 17, 2017 · 2 comments
Open

optimistic create / update / patch / remove #7

ahdinosaur opened this issue Apr 17, 2017 · 2 comments

Comments

@ahdinosaur
Copy link
Member

example: update

  • on start, set optimistic data.
  • if complete (success), set real data.
  • if error, rollback to previous data.

except when we have multiple concurrent updates:

  • keep track of the last real data.
  • set any new updates as optimistic data
  • only when all updates fail, rollback to previous data.

should probably draw this or something. /cc @pietgeursen

@danalexilewis
Copy link

What happens with concurrent updates where one update fails rather then all?

@ahdinosaur
Copy link
Member Author

@agentlewis assuming these updates all reference the same database entity (implicit when i said "concurrent updates" above, but maybe not obvious), i guess it really only matters that the last one succeeds.

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

2 participants