talira

Compare

Google Cloud SpannerCockroachDBTiDB
What it isAlways-on database with virtually unlimited scaleThe cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placementOpen source, MySQL-compatible distributed SQL database for transactions, analytics and vector search
KindSaaSSource availableOpen core
Trust0.610.720.79
Stars—3262140769
Last commit—2026-11-112026-11-24
LicenceproprietaryCockroachDB Software License (source-available)Apache-2.0
PricingUsage-basedFree trialFree tier
Free tierNoNoYes
Self-hostableYesYesYes
Ways to run it—
  • Cockroach Continuum Standard: $0.092 per vCPU-hour (about $203/month for 2 vCPU and 100 GB); 30-day trial with $400 credit, no credit card
  • Cockroach Continuum Mission Critical: $0.162 per vCPU-hour (about $1,528/month for 12 vCPU and 100 GB); credit card required
  • CockroachDB Enterprise (self-hosted) (self-hosted, CockroachDB Software License): Enterprise Free: free for businesses with less than $10M annual revenue (renewed yearly, community support); Enterprise: paid, no published price; single-node development clusters need no key
    You arrange: servers or a Kubernetes cluster, a licence key, renewed every year, telemetry to Cockroach Labs on Enterprise Free and Trial (turned off only with a paid licence), backups, monitoring and upgrades
  • TiDB Community (self-managed) (self-hosted, Apache-2.0): free
    You arrange: servers or a Kubernetes cluster, upgrades, backups and monitoring, community support
  • TiDB Cloud: Starter free up to a monthly allowance, then usage-based; Essential from $400/month; Premium from $1,800/month; Dedicated from $1,376/month
SOC 2—YesYes
HIPAA—Yes—
SSO———
APIYesYes—
Plugins———
MCP serverYes——
CompanyGoogle
public company (NASDAQ:GOOGL)
Cockroach Labs
Series F, 2021
PingCAP
Features
  • automatic sharding with horizontal read and write scaling
  • strong transactional consistency
  • single-region, dual-region and multi-region configurations; up to 99.999% availability
  • GoogleSQL and a PostgreSQL interface
  • Spanner Graph, vector search and full-text search
  • columnar engine for analytics on live data
  • Data Boost: on-demand isolated compute for analytical queries
  • federated queries and reverse ETL with BigQuery
  • All 13 features
  • distributed SQL across nodes, zones and regions
  • control over data placement
  • survives node and zone failures
  • row-level security and column-level encryption (Continuum)
  • change data capture
  • physical cluster replication
  • single-node and demo clusters for development
  • air-gapped self-hosted deployments
  • All 11 features
  • MySQL protocol and syntax compatibility with existing drivers, ORMs and tools
  • distributed ACID transactions with two-phase commit
  • horizontal and vertical scaling without downtime, compute and storage scaled separately
  • Raft replication with automatic failover and configurable replica placement
  • HTAP: TiKV row store plus TiFlash columnar replicas updated in real time
  • vector search
  • changefeeds for change data capture, data migration and disaster recovery tools
  • deploy with TiUP on bare metal or TiDB Operator on Kubernetes
  • All 9 features
Limitations
      • A production self-managed cluster runs several components (TiDB, TiKV, PD and optionally TiFlash) across multiple nodes
      • TiDB Cloud Essential and Premium are in public preview and charge a minimum capacity, with storage and other services billed on top