{"data":{"slug":"tidb","name":"TiDB","tagline":"Apache-2.0 distributed MySQL-compatible SQL database","category":"databases","categoryName":"Databases","url":"https://www.pingcap.com/tidb/","github":"https://github.com/pingcap/tidb","pricing":"open-source","hook":"TiDB is an open-source, distributed SQL database that speaks the MySQL protocol and scales out horizontally, with strong consistency through Raft and separate compute and storage layers.","whatsGood":"Apache-2.0 (pingcap/tidb), developed since 2015. Distributed transactions use two-phase commit for ACID guarantees, data is replicated with Raft for automatic failover, and compute (TiDB) scales separately from storage (TiKV) without downtime. A columnar TiFlash engine adds real-time analytics on the same data (HTAP). Runs on Kubernetes via an operator or locally with the TiUP playground. ★~40.6k.","theCatch":"A production cluster is several components (TiDB, TiKV, PD, optionally TiFlash) across at least three nodes, which is a lot of ops for a small app. MySQL compatibility is high but not total, so test your queries and features. The managed TiDB Cloud is PingCAP's commercial service.","verdict":"Serious scale-out MySQL when one primary is no longer enough — overkill before that.","addedAt":"2026-10-18","featured":false,"domain":"Databases","subSpecialty":"Data","subcategory":"Distributed SQL","tags":["self-host","permissive","active"],"capabilities":[],"surfaces":["Self-host"],"ecosystem":["Multi-platform"],"licenseModel":"Apache-2.0","githubStars":40652,"starsPerWeek":70,"access":"free","archived":false,"repo":{"createdAt":"2015-09-06","pushedAt":"2026-10-19","license":"Apache-2.0","archived":false,"checkedAt":"2026-10-19"}},"related":[{"slug":"supabase","name":"Supabase","tagline":"Open-source Firebase alternative built on Postgres"},{"slug":"turso","name":"Turso","tagline":"SQLite at the edge with libSQL"},{"slug":"redis","name":"Redis","tagline":"The in-memory data store everyone uses"},{"slug":"upstash","name":"Upstash","tagline":"Serverless Redis and Kafka"},{"slug":"pinecone","name":"Pinecone","tagline":"Vector database for AI applications"}],"links":{"self":"/api/gems/tidb","html":"/gems/tidb","markdown":"/gems/tidb.md","category":"/api/gems?category=databases","categoryPage":"/stacks/databases"}}