I was wondering how I could have a value for all servers that will always be the same.
This isn’t my specific use case but I think this is a good example for what im trying to do.
Imagine having a system where items can spawn or like some kind of global coin rush event where only 100 of these items can be grabbed. Once you pickup the item it will add to this cross-server value that 1 item has been picked up. But before adding it checks that there is less than 100 items that have been picked up so far.
The problem with using something like memory service is that what if theres a delay when I update the items? E.g it checks and it sees theres only 99 items so it adds one, another server around the same time also sees theres 99 items and adds one and it becomes 101 total items picked up. (Assume in my use case that I cannot have more than 100 under any circumstances so I cant just let it fly.)
How could I have a consistent cross server value?