Comparison

Google Cloud Spanner vs TiDB

On the evidence we track, TiDB leads this comparison with a composite score of 60/100. Scores are only directly comparable because these tools share a category; the full breakdown and every source is below.

Machine formatsJSONMarkdownGraphQLor send Accept: application/json
Google Cloud Spanner44
TiDB60
Score
Vioscale score
Google Cloud Spanner44 / 100low · 39%
TiDB60 / 100medium · 61%
Pricing
Free tier
Google Cloud Spanner
TiDB
Model
Google Cloud Spannercommercial
Price level
Google Cloud Spannerlow
TiDBlow
Transparent
Google Cloud Spanner
TiDB
Integrations
Count
Google Cloud Spanner5
TiDB4
Security
Gdpr
Google Cloud Spanner
TiDB
Pci
Google Cloud Spanner
TiDB
Soc2
Google Cloud Spanner
TiDB
Reliability
Sla pct
Google Cloud Spanner
TiDB99.99
Status page
Google Cloud Spanner
TiDB

Capabilities

Feature-by-feature on the axes that matter for relational databases. “-” means undocumented, not absent.

Core
SQL model
Google Cloud SpannerFull SQL
TiDBFull SQL
Transactions
ACID transactions
Google Cloud SpannerFull
TiDBFull
Highest isolation level
Google Cloud SpannerSerializable
TiDB-
Consistency
Consistency
Google Cloud SpannerStrong
TiDB-
Scale
Horizontal scale
Google Cloud SpannerNatively distributed
TiDBNatively distributed
Replication
Replication
Google Cloud SpannerConsensus (Raft/Paxos)
TiDB-
Availability
Automatic failover / HA
Google Cloud Spanner
TiDB-
Deployment
Deployment
Google Cloud SpannerManaged
TiDB-
Serverless / scale-to-zero
Google Cloud Spanner-
TiDB-
Compatibility
Wire compatibility
Google Cloud SpannerPostgres protocol
TiDBMySQL protocol
Extensibility
Extensions / plugins / UDFs
Google Cloud Spanner
TiDB-
Licensing
Licence class
Google Cloud SpannerProprietary
TiDBPermissive OSS
Data types
JSON / document support
Google Cloud Spanner-
TiDB-
Geo / spatial
Google Cloud Spanner-
TiDB-

What each one is

The product in its own terms, so the numbers below have context.

Google Cloud Spanner

Google Cloud's globally distributed, multi-model database supporting relational, graph, key-value, and search capabilities with native PostgreSQL interface and Gemini AI integration.

Independently observed

TiDB

Leader

An open-source distributed SQL database trusted by innovators to power transactional, AI, and other modern applications.

Independently observed

Pricing

List pricing as published by each vendor, with the date we read it. Always verify at the source before you buy.

Google Cloud Spanner

Usage-basedFree tier90-day trial

Usage-based pricing: compute capacity (nodes/processing units, hourly), storage (monthly), backups, data replication, network bandwidth. Free 90-day trial instances. Optional 1-year and 3-year committed use discounts. Three editions available: Standard, Enterprise, and Enterprise Plus.

as of verify ↗

TiDB

Leader
HybridFree tier
  • TiDB Cloud StarterFree
  • TiDB Cloud DedicatedContact sales
as of verify ↗

Platform & deployment

Where each product runs and how it can be hosted. A dash means undocumented, not unsupported.

Platforms
Web
Google Cloud Spanner
TiDB
Deployment
Cloud / SaaS
Google Cloud Spanner
TiDB
Self-hosted
Google Cloud Spanner
TiDB

Integrations

What each product connects to. Counts come from the vendor's own integration directory where one exists.

Google Cloud Spanner

5 total
  • Gemini Enterprise Agent Platform
  • Gemini CLI
  • Model Context Protocol (MCP)
  • Agent Development Kit (ADK)
  • Data Agent Kit
Independently observed

TiDB

Leader
4 total
  • Cursor
  • JDBC
  • mysql-connector-python
  • MySQL
Independently observed

Comparison generated from independently-sourced facts. Every value links to its source and retrieval date. See the method.