An inquiry regarding a datastore method

I searched around a fair bit and couldn’t find anything solid.

Can I have two servers simultaneously call IncrementAsync on the same key without any risk of value loss or inconsistency? In other words, since I’m only incrementing an integer, is the operation internally queued or handled atomically? I’m not using GetAsync or SetAsync concurrently, just performing increments. While the method’s name suggests it would be opposed to this, I just want a definitive answer.

It should be safe, its handle atomically. Since they rely on versioning, and they are generally designed to be atomic.
But I think it cannot be said the same for OrderedDatastores, cause according to the docs, it says it does not support versioning system.

1 Like