● Beta — KubeEra is in active development. Profiles are live; AI-perception measurement is rolling out.
T

TiDB

App Definition & Delivery
Open source · Apache-2.0

TiDB is a distributed SQL database that speaks the MySQL wire protocol.

updated 2026-07-01

What it is

TiDB is a distributed SQL database that speaks the MySQL wire protocol. It separates compute (TiDB nodes, stateless SQL layer) from storage (TiKV, a distributed transactional key-value store) and adds TiFlash for columnar replication, making it an HTAP system — you can run OLTP and OLAP workloads against the same data without a separate ETL pipeline into a warehouse. It scales horizontally, supports distributed ACID transactions, and handles automatic sharding/rebalancing so you don't manually manage partitions the way you would with vanilla MySQL sharding schemes. Written in Go (with the storage engine in Rust), Apache-2.0 licensed.

Who builds it and why

PingCAP built TiDB, and PingCAP is a commercial database company — TiDB is the open-source core of their business, with a managed cloud offering (TiDB Cloud) and enterprise support on top. That's a normal and sustainable open-core model, not a red flag, but it means roadmap priorities are set by a company with a product to sell, not a neutral foundation. 1,075 contributors and a still-active commit history (last commit dated 2026-07-01 per the repo) indicate this isn't an abandoned side project — it's under continuous development at scale. CNCF maturity status is not publicly available in this dataset, so don't assume graduated/incubating status without checking directly.

Production readiness signal

40,235 GitHub stars and 1,075 contributors is a large, mature project by any measure — this is not an experimental database. Latest release is v8.5.6, indicating a long, iterated release history rather than a 1.0 that just shipped. Companies running large-scale OLTP+OLAP workloads (well-documented public case studies exist from companies like Shopee, Zhihu, and others) have run TiDB in production for years. The main thing to verify yourself: distributed SQL databases have sharp edges around latency (network hops between TiDB/TiKV/PD nodes), and you should pressure-test your actual query patterns before committing, not just trust benchmark numbers.

Who should use this

Teams that have genuinely outgrown single-node MySQL/PostgreSQL — hit sharding pain, need horizontal write scaling, or want real-time analytics on live transactional data without a separate data warehouse. If your application is already MySQL-compatible and you want to avoid an application rewrite, TiDB's wire-protocol compatibility is the actual draw here. Also a fit for teams that specifically need strong consistency across distributed transactions (financial/ledger-style workloads) combined with analytical query needs.

Who should NOT use this

If your dataset fits comfortably on a single well-tuned Postgres or MySQL instance, don't reach for TiDB — you're trading operational simplicity for scalability you don't need yet, and distributed systems have real tail-latency and operational-complexity costs. Teams without dedicated database/infra ops capacity will struggle: running TiKV/PD/TiFlash clusters yourself is materially harder than running a single RDBMS, and you need people who understand distributed consensus failure modes when things go sideways. If you need deep MySQL-specific features (some stored procedure behaviors, certain replication topologies, specific storage engines) or heavy reliance on MySQL extensions, check compatibility gaps carefully — TiDB is MySQL-compatible, not MySQL. And if you just want managed OLAP, a dedicated warehouse (Snowflake, ClickHouse, BigQuery) will likely outperform TiDB's analytical path for pure analytics-only use cases.

Alternatives

  • CockroachDB — similar distributed SQL positioning, PostgreSQL wire protocol instead of MySQL, also open-core.
  • YugabyteDB — distributed SQL, PostgreSQL-compatible, also open-core with a cloud product.
  • Vitess — MySQL sharding middleware rather than a from-scratch distributed database; a better fit if you want to keep actual MySQL underneath.

Pricing

TiDB itself (the core database, TiKV, TiFlash) is fully open source under Apache-2.0 — you can self-host at no licensing cost. PingCAP monetizes through TiDB Cloud (managed hosting) and enterprise support/tooling; specific pricing for those is not publicly available here and should be confirmed directly with PingCAP.

Frequently asked

What is TiDB?+
TiDB is a distributed SQL database that speaks the MySQL wire protocol.
Who builds TiDB?+
PingCAP built TiDB, and PingCAP is a commercial database company — TiDB is the open-source core of their business, with a managed cloud offering (TiDB Cloud) and enterprise support on top.
Is TiDB production ready?+
40,235 GitHub stars and 1,075 contributors is a large, mature project by any measure — this is not an experimental database. Latest release is v8.5.6, indicating a long, iterated release history rather than a 1.0 that just shipped.
Who should use TiDB?+
Teams that have genuinely outgrown single-node MySQL/PostgreSQL — hit sharding pain, need horizontal write scaling, or want real-time analytics on live transactional data without a separate data warehouse.
Who should not use TiDB?+
If your dataset fits comfortably on a single well-tuned Postgres or MySQL instance, don't reach for TiDB — you're trading operational simplicity for scalability you don't need yet, and distributed systems have real tail-latency and operational-complexity costs.
What are the alternatives to TiDB?+
CockroachDB — similar distributed SQL positioning, PostgreSQL wire protocol instead of MySQL, also open-core. YugabyteDB — distributed SQL, PostgreSQL-compatible, also open-core with a cloud product.
How much does TiDB cost?+
TiDB itself (the core database, TiKV, TiFlash) is fully open source under Apache-2.0 — you can self-host at no licensing cost. PingCAP monetizes through TiDB Cloud (managed hosting) and enterprise support/tooling; specific pricing for those is not publicly available here and should be confirmed directly with PingCAP.