The optimistic concurrency will let the user try to update the entity. EF handles the overhead operations to ensure whether there is any concurrency conflict or not. This operation does not hurt performance, as pessimistic concurrency hurts, but it does handle concurrency in different ways.
The different approaches for handling optimistic concurrency are:
- Database wins
- Client wins
- User-specific custom resolution
We will be investigating further each of the approaches, one by one, in the next section.