Google Cloud Spanner vs TiDB
Google Cloud Spanner and TiDB compared field by field from their catalog records. Both are listed under Distributed OLTP.
| Attribute | Google Cloud Spanner | TiDB |
|---|---|---|
| Maintainer | Google LLC | PingCAP |
| Categories | Globally Distributed SQL, Distributed OLTP, Property Graph Databases | HTAP Databases, Distributed OLTP |
| Status | active | active |
| License | LicenseRef-Proprietary | Apache-2.0 |
| Open source (OSI) | No | Yes |
| First release | 2017 | 2017 |
| Latest stable version | rolling | 8.5.8 (Aug 27, 2026) |
| Deployment | managed, self-hosted | self-hosted, managed, serverless |
| Wire compatibility | postgres, grpc, http-rest | mysql |
| Query languages | SQL, GQL | SQL |
| Written in | Go, Rust, C++ | |
| Radar ring | trial | trial |
| Last verified | Dec 3, 2026 | Dec 3, 2026 |
Summaries
Google Cloud Spanner
Google's distributed relational database that shards data automatically and replicates it synchronously with Paxos, using TrueTime clocks to provide externally consistent transactions across regions. It offers GoogleSQL and PostgreSQL dialects and adds built-in graph queries, full-text and vector search on the same data. It runs as a managed Google Cloud service, and since 2026 as Spanner Omni for on-premises and other clouds.
trial Mature, strongly consistent global SQL with a 99.999% SLA option; Spanner Omni reduces but does not remove dependence on Google.
TiDB
Open-source distributed SQL database compatible with the MySQL protocol. A stateless SQL layer sits on TiKV, a Raft-replicated transactional key-value store, while TiFlash keeps columnar replicas for analytical queries on the same data. It scales horizontally and is used for large MySQL workloads that outgrow sharding as well as mixed transactional and analytical use.
trial A proven open-source path for scaling MySQL-compatible workloads horizontally, with built-in columnar replicas for analytics.
Sources
Last verified:
- cloud.google.com/spanner/docs/overview cloud.google.com
- cloud.google.com/blog/products/databases/spanner-omni-deploy-anywhere-version-of-spanner-is-now-ga cloud.google.com
- cloud.google.com/blog/products/databases/introducing-spanner-omni cloud.google.com
- cloud.google.com/blog/products/gcp/introducing-cloud-spanner-a-global-database-service-for-mission-critical-applications cloud.google.com
- cloud.google.com/blog/products/gcp/cloud-spanner-is-now-production-ready-let-the-migrations-begin cloud.google.com
- docs.pingcap.com/tidb/v8.5/release-8.5.8 docs.pingcap.com
- docs.pingcap.com/releases/tidb-self-managed/llms.txt docs.pingcap.com
- pingcap.com/tidb-release-support-policy pingcap.com
- github.com/pingcap/tidb/releases github.com
Found an error? See how to report a correction.