Distributed SQL Databases Compared

Distributed SQL databases shard and replicate data across many nodes while keeping SQL and strong consistency. Our catalog lists eight: Amazon Aurora DSQL, CockroachDB, Google Cloud Spanner, OceanBase, SingleStore, TiDB, Vitess and YugabyteDB. They fall into two client families: Postgres wire (Aurora DSQL, CockroachDB, Spanner, YugabyteDB) and MySQL wire (OceanBase, SingleStore, TiDB, Vitess). Four of the eight are Apache-2.0: OceanBase, TiDB, Vitess and YugabyteDB.

Last verified:

How we picked

We included every catalog profile whose primary category is in the distributed-sql group: distributed-oltp, htap, sharding-layers or geo-distributed-sql. SAP HANA, which lists htap only as a secondary category, is excluded. Facts come from license, license_notes, deployment, wire_compatibility, description and latest_version, last verified 2026-12-03. We have no benchmark records for these systems yet, so the guide makes no performance claims. Entries are listed alphabetically by name. The order is not a ranking.

Comparison

DatabaseLicenseOpen sourceDeploymentWire compatibilityCategoriesWritten inLatest versionReleased
Amazon Aurora DSQLLicenseRef-ProprietaryNomanaged, serverlesspostgresGlobally Distributed SQL, Serverless PostgresRust, Crollingn/a
CockroachDBLicenseRef-CockroachDB-Software-LicenseNoself-hosted, managed, serverlesspostgresDistributed OLTP, Globally Distributed SQL, Geospatial Databases, Vector Extensions & PluginsGo26.4.1
Google Cloud SpannerLicenseRef-ProprietaryNomanaged, self-hostedpostgres, grpc, http-restGlobally Distributed SQL, Distributed OLTP, Property Graph Databasesrollingn/a
OceanBaseApache-2.0Yesself-hosted, managedmysqlDistributed OLTP, HTAP DatabasesC++5.0.1
SingleStoreLicenseRef-ProprietaryNoself-hosted, managedmysql, mongodb, http-restHTAP Databases, Vector Extensions & PluginsC++9.0.49
TiDBApache-2.0Yesself-hosted, managed, serverlessmysqlHTAP Databases, Distributed OLTPGo, Rust, C++8.5.8
VitessApache-2.0Yesself-hosted, managedmysql, grpcSharding Layers & ExtensionsGo24.0.6
YugabyteDBApache-2.0Yesself-hosted, managedpostgres, cassandra-cqlDistributed OLTP, Globally Distributed SQLC++, C, Java2026.1.3.2

Values come from each database's profile; see the profile for its sources and verification date.

The options

  1. Amazon Aurora DSQL

    Aurora DSQL is a proprietary, serverless AWS service that offers active-active writes across Regions with strong consistency. It reuses the PostgreSQL parser and planner on Rust components that use optimistic concurrency control, and it scales reads, writes, compute and storage independently. It became generally available on 2025-05-27.

    Best for
    Multi-Region applications on AWS that want no servers to manage and Postgres-style SQL.
    Watch out for
    It supports a subset of PostgreSQL features and runs only on AWS. Our radar ring is assess.
  2. CockroachDB

    CockroachDB shards data into ranges replicated with Raft and provides serializable transactions across nodes and regions. It speaks the PostgreSQL wire protocol, and table- and row-level data placement controls where data lives in multi-region clusters. The latest release is 26.4.1 (2026-11-18), with self-hosted, managed and serverless options.

    Best for
    Resilient transactional systems such as payments, identity and inventory that must survive node or region failure.
    Watch out for
    Self-hosted builds have used the proprietary CockroachDB Software License since v24.3. The free Enterprise tier is limited to companies under USD 10M annual revenue, students and individuals.
  3. Google Cloud Spanner

    Spanner replicates data synchronously with Paxos and uses TrueTime clocks for externally consistent transactions across regions. It offers GoogleSQL and PostgreSQL dialects, with graph, full-text and vector search on the same data. Spanner Omni, generally available since September 2026, extends it to on-premises and other clouds.

    Best for
    Global transactional workloads on Google Cloud, and now in self-managed environments through Spanner Omni.
    Watch out for
    It is proprietary. The Spanner Omni Developer Edition is free only for non-production use, and the Commercial Edition is priced per vCPU.
  4. OceanBase

    OceanBase is a C++ distributed relational database, originally built at Alibaba and Ant Group for payment workloads, with automatic failover across replicas. It supports row, column and mixed storage, so one cluster can serve transactions and analytics. Its repository has been Apache-2.0 since March 2026, and the latest release is 5.0.1 (2026-08-10).

    Best for
    MySQL-compatible distributed OLTP and HTAP in one cluster.
    Watch out for
    The Oracle-compatible mode is only in the commercial edition. Our radar ring is assess.
  5. SingleStore

    SingleStore runs transactional and analytical workloads in one engine, combining in-memory rowstore tables with a disk-based columnstore. It speaks the MySQL wire protocol and also lists MongoDB and HTTP interfaces, with built-in vector and full-text search. The production release is 9.0.44 (2026-09-24).

    Best for
    Real-time analytics on live transactional data with MySQL clients.
    Watch out for
    It is proprietary software with a free tier. SingleStore 10 is a release candidate, and private-equity firm Vector Capital closed a buyout in October 2025.
  6. TiDB

    TiDB puts a stateless MySQL-compatible SQL layer on TiKV, a Raft-replicated transactional key-value store, and keeps TiFlash columnar replicas for analytics on the same data. TiDB, TiKV and TiFlash are all Apache-2.0, and TiKV is a CNCF graduated project. The latest release is 8.5.8 (2026-08-27).

    Best for
    MySQL workloads that have outgrown manual sharding, and mixed transactional-analytical use.
    Watch out for
    A cluster runs several components (TiDB, TiKV, TiFlash). PingCAP sells an Enterprise edition and the managed TiDB Cloud alongside the open-source release.
  7. Vitess

    Vitess is an Apache-2.0 clustering system that shards MySQL horizontally behind a single logical database. VTGate routes queries using a VSchema, and tablet servers manage each MySQL instance for resharding, online schema changes and failover. It is a graduated CNCF project, and the latest release is 24.0.6 (2026-12-02).

    Best for
    Scaling an existing MySQL fleet horizontally without moving to a new storage engine.
    Watch out for
    It is a sharding layer, not a new database, so cross-shard behavior depends on the VSchema design. Each major version gets about one year of support.
  8. YugabyteDB

    YugabyteDB reuses the PostgreSQL query layer (YSQL) on DocDB, a sharded, Raft-replicated storage engine derived from RocksDB. It also offers a Cassandra-compatible API (YCQL). The core is Apache-2.0, and the latest release is 2026.1.3.2 (2026-12-01), on separate LTS and STS release tracks.

    Best for
    Postgres-compatible applications that need horizontal scaling and multi-region deployment under a permissive license.
    Watch out for
    The YugabyteDB Anywhere management platform is under the Polyform Free Trial License and needs a commercial license in production.

FAQ

What is distributed SQL?
Distributed SQL databases split data across many nodes and replicate it, usually with a consensus protocol such as Raft or Paxos. They keep SQL and transactional consistency, so applications can scale out without sharding data in application code.
Which distributed SQL databases are PostgreSQL-compatible?
Amazon Aurora DSQL, CockroachDB, Google Cloud Spanner and YugabyteDB list postgres in their wire_compatibility. YugabyteDB and Aurora DSQL reuse PostgreSQL code, while CockroachDB and Spanner implement the protocol and dialect on their own engines.
Which distributed SQL databases are MySQL-compatible?
TiDB, OceanBase, SingleStore and Vitess speak the MySQL wire protocol. Vitess shards real MySQL instances, while TiDB, OceanBase and SingleStore are separate engines that implement MySQL compatibility.
Which distributed SQL databases are open source?
OceanBase (Apache-2.0 since March 2026), TiDB, Vitess and YugabyteDB are Apache-2.0. CockroachDB is source-available under the CockroachDB Software License, and Aurora DSQL, Spanner and SingleStore are proprietary.
Can I self-host Google Cloud Spanner?
Yes, since Spanner Omni became generally available in September 2026. It has a free Developer Edition for non-production use and a paid Commercial Edition priced per vCPU. Aurora DSQL is available only as an AWS service.

Related guides

All guides

Sources

Last verified:

  1. aws.amazon.com/rds/aurora/dsql/features aws.amazon.com
  2. cockroachlabs.com/docs/releases/v26.4 cockroachlabs.com
  3. cloud.google.com/spanner/docs/overview cloud.google.com
  4. github.com/oceanbase/oceanbase github.com
  5. docs.singlestore.com/db/v9.1/release-notes/singlestore-memsql/9-0-release-notes.md docs.singlestore.com
  6. docs.pingcap.com/tidb/v8.5/release-8.5.8 docs.pingcap.com
  7. vitess.io/docs/releases vitess.io
  8. docs.yugabyte.com/stable/releases/ybdb-releases docs.yugabyte.com

Found an error? See how to report a correction.