Softwr
TiDB logo

TiDB

Apache 2.0 distributed SQL database with MySQL wire compatibility and a separate columnar replica for analytical queries.

TiDB is free to use. TiDB scales MySQL-compatible OLTP horizontally by separating a stateless SQL layer from a distributed key-value store, and adds a columnar replica so analytical queries do not fight transactional ones. Softwr lists it under Databases. TiDB is made by PingCAP, launched in 2015, available on Web.

Overview

What is TiDB?

TiDB is a distributed SQL database from PingCAP, licensed Apache 2.0. It is built from separate components: TiDB, a stateless SQL layer that speaks the MySQL wire protocol; TiKV, a distributed transactional key-value store that shards data into ranges replicated by Raft; PD, the placement driver that tracks region metadata, rebalances data and issues the timestamps that order transactions; and TiFlash, an optional columnar replica kept in sync through Raft learners. Applications connect with an ordinary MySQL driver. Because the columnar copy is maintained by the same replication mechanism as the row store, analytical queries can be routed to it without an ETL pipeline or a separate warehouse, which is what the hybrid transactional and analytical claim rests on. TiDB Cloud offers managed deployments, and more recent releases add vector search alongside the relational engine. The distinguishing property is that it scales writes horizontally while remaining something an application already speaks to. MySQL scales reads with replicas easily and writes only by sharding, which pushes routing, cross-shard queries and resharding into the application; TiDB moves that into the database and keeps ACID transactions across the whole cluster. Commercially, that is the difference between a sharding project and a migration, and it is why TiDB shows up in companies that hit the write ceiling of a single MySQL primary and do not want to write a sharding layer. The Apache 2.0 licence matters too, because in a market where several distributed databases moved to source-available terms, TiDB and TiKV, which is a CNCF graduated project, stayed permissive. The buyers are teams with a large MySQL workload that has outgrown vertical scaling, and teams that need fresh analytical queries over transactional data without a pipeline. The trade-off is footprint and latency. A credible production cluster is several PD, TiKV and TiDB nodes rather than a database server, which means it is never the cheap option at small scale; and every transaction pays for distributed consensus and a timestamp from PD, so a simple primary-key lookup that MySQL answers in well under a millisecond is measurably slower here. You buy horizontal scale by giving up the latency floor and the small footprint.

What people use it for

  • A MySQL workload that has hit the write ceiling of a single primary and would otherwise need an application-level sharding layer
  • Reporting that must run against current transactional data, where the columnar replica removes the delay and the cost of an ETL pipeline
  • Multi-region deployments needing a single logical database with automatic failover rather than manual primary promotion
  • Migrating off a sharded MySQL estate where the sharding logic in the application has become the main source of bugs and operational toil

The honest half

Where does TiDB fall short?

Each is concrete and checkable: the half of a review a vendor will not write.

  • A production cluster needs several placement driver, storage and SQL nodes before it is fault tolerant, so the minimum viable footprint is far larger than a MySQL server and TiDB is never the economical choice for a small database.
  • Every transaction takes a timestamp from the placement driver and crosses the network to storage nodes, so simple point queries are slower than on single-node MySQL and latency-sensitive paths need to be measured, not assumed.
  • MySQL compatibility is at the wire and dialect level but not complete; stored procedures, triggers and events are not supported, so an application that pushed logic into the database cannot simply be repointed.
  • The columnar replica is an extra full copy of the data on its own nodes, so hybrid analytics roughly doubles storage and adds hardware that must be sized and paid for separately.
  • Operating it well requires cluster-specific expertise in TiUP or the Kubernetes operator, region hot spots, and rebalancing behaviour, so the licence is free but the running cost includes an engineer who understands distributed storage.

Cross-shopped

What are the alternatives to TiDB?

The closest alternatives to TiDB are CockroachDB, Vitess and YugabyteDB. Each is a tool buyers genuinely weigh against it, with the reason why.

  • TiDB vs CockroachDB

    CockroachDB: Distributed SQL with Postgres compatibility and multi-region-first architecture for cloud-native applications

  • TiDB vs Vitess

    Vitess: MySQL sharding middleware for teams that want full control over data partitioning strategy

  • TiDB vs YugabyteDB

    YugabyteDB: Distributed SQL database with PostgreSQL compatibility, for teams that prefer Postgres to MySQL.

  • TiDB vs SingleStore

    SingleStore: Distributed SQL database for mixed transactional and analytical workloads.

  • TiDB vs Amazon Aurora

    Amazon Aurora: MySQL- and PostgreSQL-compatible managed database for AWS-based teams wanting less operational work.

  • TiDB vs PlanetScale

    PlanetScale: Managed MySQL-compatible platform built on Vitess for horizontal scaling.

Pricing

How much does TiDB cost?

TiDB has a free plan, and paid plans start at $250/mo, across 2 plans. Taken from the vendor's own pricing page; prices move, so check before you buy.

Serverless

Free

  • 5GB storage
  • 50M request units
  • Free forever tier

Dedicated

$250 /mo

  • Dedicated resources
  • SLA guarantees
  • Enterprise support

Capabilities

What can TiDB do?

TiDB lists 10 features, including MySQL wire compatibility, horizontal write scaling and distributed ACID transactions.

  • MySQL wire compatibility

    Existing MySQL drivers, ORMs and clients connect without change

  • Horizontal write scaling

    Data is split into ranges spread across TiKV nodes, so write capacity grows by adding nodes

  • Distributed ACID transactions

    Cross-node transactions with snapshot isolation, ordered by timestamps from the placement driver

  • TiFlash columnar replica

    A column-oriented copy maintained by the same replication path, used for analytical queries

  • Automatic rebalancing

    The placement driver moves and splits ranges as data and load change, without manual resharding

  • Raft replication

    Each range is replicated across nodes and failover happens without operator intervention

  • Apache 2.0 licence

    Permissive open source for both TiDB and TiKV, with TiKV a graduated CNCF project

  • Online schema change

    DDL applied without locking the table for the duration of the change

  • Change data capture

    TiCDC streams changes out to downstream systems for replication or integration

  • Managed cloud

    TiDB Cloud provides hosted clusters, including a serverless-style entry tier

Answered, with sources

Questions people ask

Each answer names the page it came from, so you can check it rather than take our word for it.

Is TiDB a drop-in replacement for MySQL?

At the protocol and dialect level it is close, and most applications connect unchanged. Stored procedures, triggers and events are not supported, and latency characteristics differ, so it needs testing rather than assumption.

What licence is it under?

Apache 2.0, for both TiDB and the underlying TiKV storage engine. TiKV is a graduated CNCF project, which is a meaningful governance signal in a market where several competitors moved to source-available licences.

Do I need TiFlash?

Only for analytical queries. It is an optional columnar replica; without it TiDB is a distributed transactional database. With it you get analytics on live data at the cost of an additional full copy.

Is the managed cloud the same software?

TiDB Cloud runs the same engine, with the control plane, scaling and operational tooling provided as a service. The entry tier is metered differently from a dedicated cluster, so the cost model rather than the engine is what changes.

When is TiDB the wrong choice?

When the database is small enough for one server, when latency on single-row lookups is the primary constraint, or when the application depends on MySQL stored procedures and triggers.

Behind it

Who makes TiDB?

TiDB is made by PingCAP, founded in 2015 and based in San Mateo, California.

Company
PingCAP
Based in
San Mateo, California
Founders
Liu Qi, Huang Dongxu, Cui Qiu

Timeline

TiDB over time

  1. Funding2021-05-01$300m

    Series D funding of $300M led by GGV and Coatue for R&D and market expansion

    Source
  2. Founded2015-04-01

    PingCAP founded to solve the database scaling nightmare by building distributed SQL inspired by Google Spanner

    Source

Checked against

Sources

The pages the facts above were read from. Prices and limits change, so the vendor's own page is the final word.

  • TiDBpingcap.comcontext: MySQL-compatible distributed SQL
Share

Keep looking

Where to go from TiDB

Best Databases software for

Compare TiDB with

Other Databases software

  • The real-time distributed SQL database for data-intensive applications

    Free, then $0.99/mo14 researched notes
  • The cloud-native distributed SQL database

    Free plan15 researched notes
  • Open source distributed SQL database for cloud native apps

    Free, then $0.1/hour13 researched notes
  • MySQL and PostgreSQL-compatible relational database built for the cloud

    Free plan12 researched notes
  • The MySQL-compatible serverless database

    Free, then $15/mo14 researched notes
  • Open source database

    Free plan12 researched notes
  • Scalable database clustering system for horizontal scaling of MySQL

    Free plan15 researched notes
  • Globally distributed relational database with strong consistency and up to 99.999% availability

    Free plan13 researched notes
  • The heart of the Elastic Stack for search and analytics

    Free, then $16.4/mo14 researched notes
  • In-memory, column-oriented relational database from SAP for analytics and applications

    Pricing on request13 researched notes
  • MIT-licensed analytical SQL database that runs inside your process, with no server, no dependencies and one writer at a time.

    Free plan14 researched notes
  • Open source distributed wide-column store modelled on Bigtable, running on Hadoop

    Free plan11 researched notes
  • Multi-platform SQL client and database administration tool with a free open-source edition

    Free plan10 researched notes
  • A distributed key-value store using Raft consensus, built for cluster coordination rather than application data.

    Free plan14 researched notes
  • Log-based change data capture for database replication and synchronization

    12 researched notes
  • AWS managed in-memory cache for Valkey, Redis OSS and Memcached

    13 researched notes
  • Google Cloud's serverless analytical warehouse, billed either by bytes scanned per query or by reserved compute slots.

    Free plan16 researched notes
  • Managed graph database on AWS for property graph and RDF data

    11 researched notes

Softwr does not host reviews and shows no star rating for TiDB, because a rating we did not collect is not ours to publish. What is here is the pricing and platform detail from the vendor’s own pages, limitations we could state concretely, and alternatives a reviewer confirmed people weigh against it. Tell us if any of it is wrong.

More on TiDB

Best Databases software alternatives

Globally distributed relational database with strong consistency and up to 99.999% availability

usage-based

Relational database for transactions, JSON and time-series data

quote

Open source distributed wide-column store modelled on Bigtable, running on Hadoop

open-source

Distributed NoSQL database for low-latency key-value, document, graph and vector workloads

freemium

Column-oriented analytical SQL database with in-database machine learning

quote

In-memory, column-oriented relational database from SAP for analytics and applications

quote

Windows desktop relational database and application builder from Microsoft

subscription

Multi-platform SQL client and database administration tool with a free open-source edition

open-source

Compare TiDB with alternatives