I have a scenario where I have an event raised in the system and interaction from the user.
In some* scenarios (happened 3 times in 2 months) if the event is processed at the same time the user does something on the same document, both with modifying different data. It ends up that they override each other.
Trying to figure out if I'm doing something wrong. Or something I can do to prevent that happening.
example:
User uploads a photo
While adding information to the photo, like Name / Description.
I process the photo and pull out metadata like camera info to put on the photo.
The camera processing one opens the document at:
04:45:10
It takes 3 seconds to grab the info and attach it to the document.
Commits at 04:45:13
The user changes the name of the photo.
Document is opened at 04:45:11, name changed, and committed straight away.
When the image is processed and committed at 04:45:13, it loses the name change.
:(