tidb
TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data sil
What is tidb?
TiDB is built for agentic workloads that grow unpredictably, with ACID guarantees and native support for transactions, analytics, and vector search. No data silos. No noisy neighbors. No infrastructure ceiling.
Overview of tidb
What it is
TiDB is an open-source, cloud-native, distributed SQL database. Its name is pronounced /’taɪdiːbi:/ and “Ti” stands for Titanium. The database is designed for high availability, horizontal and vertical scalability, strong consistency, and high performance.
Key features
- Distributed Transactions: Uses a two-phase commit protocol to ensure ACID compliance across multiple nodes. Strong consistency is maintained even in the presence of network partitions or node failures.
- Horizontal and Vertical Scalability: Scaling can be done horizontally (adding more nodes) or vertically (increasing resources) without downtime. Computing and storage are separated, allowing independent adjustment.
- High Availability: Built-in Raft consensus protocol provides reliability and automated failover. Data is stored in multiple replicas; transactions commit only after writing to the majority of replicas. Geographic replica placement is configurable for different disaster tolerance levels.
- Hybrid Transactional/Analytical Processing (HTAP): Two storage engines are provided: TiKV (row-based) and TiFlash (columnar). TiFlash uses the Multi-Raft Learner protocol to replicate data from TiKV in real time. The TiDB Server coordinates query execution across both engines to optimize performance.
- Cloud-Native: Can be deployed in public clouds, on-premises, or natively in Kubernetes. TiDB Operator manages TiDB on Kubernetes, automating cluster operations. TiDB Cloud offers a fully-managed service.
- MySQL Compatibility: Compatible with MySQL 8.0, allowing use of familiar protocols, frameworks, and tools. Migration tools are provided for moving application data.
- Open Source Commitment: All source code is available on GitHub under the Apache 2.0 license, including enterprise-grade features.
Use cases
TiDB is suitable for agentic workloads that grow unpredictably and require ACID guarantees, native support for transactions, analytics, and vector search. It is designed to avoid data silos, noisy neighbors, and infrastructure ceilings. Use cases include scenarios needing high availability, horizontal scalability, and HTAP capabilities.
Getting started
A TiDB cluster can be started in different ways:
- On a local playground: refer to the TiDB quick start guide.
- On Kubernetes: use TiDB Operator; see the TiDB on Kubernetes quick start guide.
- Using TiDB Cloud (recommended): TiDB Cloud offers a free plan with no credit card required; sign up to get a free cluster.For specific commands and code examples, see the repository README.
License and pricing
TiDB is licensed under the Apache 2.0 license. The pricing type is open_source, and TiDB Cloud provides a fully-managed service with a free plan.
Based on the project's public README and repository metadata.