As far as I understand Google Cloud Spanner is globally consistent and also fast.
Let's say I have a table with a unique
- User A in USA inserts user
johndoeto a US Spanner node
- User B in China inserts user
johndoeto a Chinese Spanner node
Does one of them fail? If not, how fast are the queries? Or do they both succeed but later on decide that one of them is a duplicate? Or do writes with UNIQUE fields go to 1 server?