TiDB
An open-source, MySQL-compatible distributed SQL database with horizontal scaling, ACID transactions, Raft-based high availability and support for analytics and vector search.
- GitHub stars
- 41k
- Last commit
- yesterday
- Latest release
- v7.5.8
- Licence
- Apache-2.0
- Self-hosted
- Yes
- Hosted version
- Available

TiDB is a cloud-native, open-source distributed SQL database from PingCAP. The name's Ti stands for titanium, and it is built for high availability, strong consistency and the ability to scale out as data and traffic grow, while staying compatible with MySQL so existing applications and tools can connect with little change.
Distributed transactions use a two-phase commit protocol to keep ACID guarantees even across nodes, through network partitions or node failures. It scales horizontally by adding nodes or vertically by adding resources, without downtime, and its architecture separates compute from storage so each can be adjusted independently. Built-in Raft consensus keeps multiple replicas in sync and handles automated failover. Topics also mention HTAP workloads, analytics and native vector search.
TiDB is written in Go under the Apache-2.0 license. It can be deployed on your own infrastructure or consumed as a managed cloud service, and it suits teams that have outgrown a single MySQL server and want horizontal scale without sharding by hand.
Key features
- MySQL-compatible distributed SQL
- Distributed ACID transactions
- Horizontal and vertical scaling without downtime
- Separated compute and storage layers
- Raft-based replication and automated failover
- Analytics and vector search support
Pricing: TiDB Community is free and Cloud Starter has a monthly free quota. Cloud Premium starts from $1800 per month and Dedicated from $0.22 per hour; Self-Managed is priced on request.



