I'm currently writing a system that can have potentially high contention on a single item and I would like to ensure that the version with the greatest number (version number dictated by another process) is the one that is retained after the contention, even if the save attempts are not in numerical order.
If I have an existing item and I save the following versions:
Then I would like 7 to be the version that is retained.
The principle is that if ES receives a version number greater than the current expected ID then skip any that were missed. If it receives a version number less than the current expected ID then ignore it.
There may already be a way to achieve this functionality that I have overlooked, but if not then I would be very appreciative of its inclusion.