Google's Spanner popularized the modern distributed SQL database concept. Google described the database and its architecture in a 2012 whitepaper called "Spanner: Google's Globally-Distributed Database." The paper described Spanner as having evolved from a Big Table-like key value store into a temporal multi-version database where data is stored in "schematized semi-relational tables."1
Spanner uses atomic clocks with the Paxos algorithm to accomplish consensus with regards to state distributed between servers. In 2010, and earlier implementation, ClustrixDB (now MariaDB Xpand) moved from a hardware appliance to a Paxos-based software database2 and was later acquired by MariaDB3 and added to a SaaS cloud offering called SkySQL.4 In 2015, two Google engineers left the company to create Cockroach DB which achieves similar results using the Raft algorithm without atomic clocks or custom hardware.5
Spanner is primarily used for transactional and time-series use cases. However, Google furthered this research with a follow on paper about Google F1 which it describes as a Hybrid transactional/analytical processing database built on Spanner.6
Distributed SQL databases have the following general characteristics:
Following the CAP Theorem, distributed SQL databases are "CP" or consistent and partition-tolerant. Algorithmically they sacrifice availability in that a failure of a primary node can make the database unavailable for writes.
All distributed SQL implementations require some kind of temporal synchronization to guarantee consistency. With the exception of Spanner, most do not use custom hardware to provide atomic clocks. Spanner is able to synchronize writes with temporal guarantees. Implementations without custom hardware require servers to compare clock offsets and potentially retry reads.10
CockroachDB, YugabyteDB and others have at times referred to themselves as NewSQL databases. Some of the NewSQL databases like Citus and Vitess have fundamentally different architectures, but were cited as examples of NewSQL by Matthew Aslett who coined the term.13 In essence, distributed SQL databases are built from the ground-up and NewSQL databases include replication and sharding technologies added to existing client-server relational databases like PostgreSQL.14 Some experts define DistributedSQL databases as a more specific subset of NewSQL databases.15
https://storage.googleapis.com/pub-tools-public-publication-data/pdf/41344.pdf [bare URL PDF] https://storage.googleapis.com/pub-tools-public-publication-data/pdf/41344.pdf ↩
Higginbotham, Stacey (May 3, 2010). "Clustrix Builds the Webscale Holy Grail: A Database That Scales". gigaom.com. https://gigaom.com/2010/05/03/clustrix-builds-the-webscale-holy-grail-a-database-that-scales/,%20https://gigaom.com/2010/05/03/clustrix-builds-the-webscale-holy-grail-a-database-that-scales/ ↩
"MariaDB acquires Clustrix". 20 September 2018. https://techcrunch.com/2018/09/20/mariadb-acquires-clusterix/ ↩
Baer (dbInsight), Tony. "For MariaDB, it's time to put the pieces together". ZDNet. https://www.zdnet.com/article/for-mariadb-its-time-to-put-the-pieces-together/ ↩
Morgan, Timothy Prickett (February 22, 2017). "Google Spanner Inspires CockroachDB To Outrun It". The Next Platform. https://www.nextplatform.com/2017/02/22/google-spanner-inspires-cockroachdb-outrun/ ↩
The future of databases: distributed SQL & MariaDB ®, retrieved 2022-12-21 https://www.youtube.com/watch?v=3igIRQqmYc4 ↩
"The Architecture of a Distributed SQL Database". 23 September 2020 – via www.youtube.com. https://www.youtube.com/watch?v=avOgswXxayA ↩
"Living Without Atomic Clocks". Cockroach Labs. April 21, 2020. https://www.cockroachlabs.com/blog/living-without-atomic-clocks/ ↩
"citus/LICENSE at 185ac5e01e8c62757c81cdc1d92cffcf6b55f500 · citusdata/citus". GitHub. Retrieved 2024-09-26. https://github.com/citusdata/citus/blob/185ac5e01e8c62757c81cdc1d92cffcf6b55f500/LICENSE ↩
"YDB is an open-source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions". ydb.tech. https://ydb.tech ↩
"What we talk about when we talk about NewSQL — Too much information". https://blogs.451research.com/information_management/2011/04/06/what-we-talk-about-when-we-talk-about-newsql/ ↩
"SQL vs. NoSQL Databases: What's the Difference?". www.ibm.com. 12 June 2022. https://www.ibm.com/cloud/blog/sql-vs-nosql ↩
Prabagaren, Gokul (October 30, 2019). "NewSQL — The Next Evolution in Databases". Medium. https://medium.com/capital-one-tech/newsql-the-next-evolution-in-databases-19109973ee53 ↩