talira

Open source, MySQL-compatible distributed SQL database for transactions, analytics and vector search

open coreApache-2.0self-hostablefree

TiDB is a distributed SQL database that speaks the MySQL protocol, so existing MySQL drivers, ORMs and tools work with it while it scales out across nodes. It separates SQL compute from storage: TiKV, a Raft-replicated row store, handles transactions with ACID guarantees, and TiFlash keeps a columnar copy in real time so analytical queries run on the same data. It also has vector search, change data capture and automatic failover across zones. The database is Apache-2.0 licensed and runs on your own servers with TiUP or on Kubernetes with TiDB Operator, and PingCAP sells it as TiDB Cloud, a managed service with a free Starter tier and provisioned and dedicated plans on AWS, Google Cloud and Azure.

Problems it solves

  • my MySQL database has outgrown one server and I don't want to shard it by hand
  • a MySQL-compatible database that scales horizontally with strong consistency
  • run analytics on live transactional data without an ETL pipeline to a warehouse
  • a distributed SQL database with automatic failover across availability zones
  • store vectors next to my relational data for RAG and similarity search
  • a serverless MySQL-compatible database with a free tier that scales to zero

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
  • TiDB Cloud managed service on AWS, Google Cloud and Azure, with a BYOC option

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

Ways to run it

TiDB Community (self-managed)

You run it, Apache-2.0

free12

Only in this edition

  • the full database: TiDB, TiKV, PD and TiFlash
  • TiUP and TiDB Operator deployment tools

Not included

  • managed operations

You arrange

  • servers or a Kubernetes cluster
  • upgrades, backups and monitoring
  • community support

Self-hosting docs

TiDB Cloud

Hosted by PingCAP

Starter free up to a monthly allowance, then usage-based; Essential from $400/month; Premium from $1,800/month; Dedicated from $1,376/month12

Only in this edition

  • managed clusters on AWS, Google Cloud or Azure
  • point-in-time recovery
  • encryption in transit and at rest

Pricing

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what TiDB does.

  1. Vitess Scalable. Reliable. MySQL-compatible. Cloud-native. Database.
  2. Google Cloud Spanner Always-on database with virtually unlimited scale
  3. MySQL The world's most popular open source database
  4. CockroachDB The cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement

Compare TiDB with the top 3