FazBrowse Wikipedia Viewer | Main Page |
Search Wikipedia:
|
Viewing: https://en.wikipedia.org/wiki/Distributed_SQL

Distributed SQL

Contents
Distributed SQL implementations
Compared to NewSQL
References

A distributed SQL database is a single relational database which replicates data across multiple servers. Distributed SQL databases are strongly consistent and most support consistency across racks, data centers, and wide area networks including cloud availability zones and cloud geographic zones. Distributed SQL databases typically use the Paxos or Raft algorithms to achieve consensus across multiple nodes.

Sometimes distributed SQL databases are referred to as NewSQL but NewSQL is a more inclusive term that includes databases that are not distributed databases.

 – meaning data represented as tables with rows and columns similar to any other RDBMS
  • automatically sharded data storage
  • underlying key–value storage
  • native SQL implementation
  • 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.

    Distributed SQL implementations

    edit
    VendorAPI License model
    Amazon AuroraPostgreSQL & MySQL Proprietary
    CockroachDB PostgreSQL-like Proprietary
    Google SpannerProprietary SQL-like Proprietary
    MySQL ClusterMySQL Open Source (GPLv2)
    NuoDBProprietary SQL Proprietary
    YugabyteDBPostgreSQL & Cassandra CQL-like Open Source (Apache 2.0)
    TiDB MySQL-like Open Source (Apache 2.0)
    MariaDB XPand MariaDB Proprietary
    TeradataProprietary SQL-like Proprietary
    YDBProprietary SQL-like, PostgreSQL-like Open Source (Apache 2.0)

    Compared to NewSQL

    edit

    CockroachDB, YugabyteDB and others have at times referred to themselves as NewSQL databases. Some of the NewSQL databases have fundamentally different architectures, but were cited as examples of NewSQL by Matthew Aslett who coined the term. 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. Some experts define DistributedSQL databases as a more specific subset of NewSQL databases.

    References

    edit
  • ↑ The future of databases: distributed SQL & MariaDB ®, retrieved 2022-12-21
  • ↑ "YDB is an open-source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions". ydb.tech.
  • ↑

  • View original on Wikipedia | Back | FazBrowse Home