Building systems that manage globally distributed data, provide data consistency and are also highly available is really hard. The beauty of the cloud is that someone else can build that for you. The CAP theorem says that a database can only have two of the three following desirable properties: C: consistency, which implies a single value for shared data A: 100% availability, for both reads and up
![Inside Cloud Spanner and the CAP Theorem | Google Cloud Blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/3b6cc866966645c1860c08e3be68fbb1d48af21f/height=288;version=1;width=512/https%3A%2F%2Fstorage.googleapis.com%2Fgweb-cloudblog-publish%2Fimages%2Fgooglecloud_2022_RYqbQfm.max-2500x2500.jpg)