Ok so a simple task such as generating a sequential number has caused us an issue in the cloud. Where you have more than one server it gets harder and harder to guarantee that the allocated number between servers are not clashing.
We are using Azure servers if it helps.
We thought about using the app cache but you cannot guarantee it will be updated between servers.
We are limited to using: a SQL table with an identity column or some peer to peer method between servers or use a blob store and utalise the locks to store the nost upto date number. (this could have scaling issues)
I just wondered of anyone has an idea of a solution to resolve this? Surely its a simple problem and must have been solved by now.