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

Prevent duplicate commits #32

Open
skofman1 opened this issue Apr 13, 2016 · 0 comments
Open

Prevent duplicate commits #32

skofman1 opened this issue Apr 13, 2016 · 0 comments

Comments

@skofman1
Copy link
Contributor

When can duplicate commit happen?
Two commit requests are sent concurrently, and two requests end up in the Topic, before the DB is updated to prevent further commits.

Solutions:

  1. Locking on commit method
  2. Service bus duplicate detection:
    http://blog.iquestgroup.com/en/windows-azure-service-bus-duplicate-detection/#.Vw7R1DArJaR
    Use a hash to distinguish between different commits, and recognize the same commit. For example, request time stamp of previous commit.
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