
TiKV
Distributed key-value store with ACID transactions at scale
Replaces Amazon Dynamodb, Azure Cosmos Db, Google Cloud Firestore In Datastore Mode

Who it's for
Use TiKV when you need a consistent key-value storage layer and have the expertise to operate distributed systems.
Skip if you need a turnkey SQL database for application developers.
TiKV helps platform engineers understand and tune the storage layer behind TiDB workloads.
Skip if your database problem can be solved with a managed relational service.
The problem
Single-node key-value stores are simple, but they become risky when data must survive node failures, scale horizontally, and keep strong consistency. Teams can shard manually or depend on a managed cloud database, but both choices add operational or vendor constraints. Distributed transactional storage is hard because replication, consensus, rebalancing, and failure recovery must work together. Teams need a storage engine that already solves those distributed systems problems.
How it works
Splits data across nodes and regions so storage can scale horizontally instead of depending on one server.
Uses Raft consensus for replicated data and strong consistency across failures.
Provides a transactional key-value layer used by TiDB and useful for systems that need consistent distributed storage.
Features
- Distributed key-value storage
- Raft-based replication
- Transactional API foundation
Recommended for this setup
Strengths
- Battle-tested inside TiDB: TiKV is not only a research project; it serves as the storage layer for TiDB deployments.
- Apache-2.0 Rust codebase: The permissive license and Rust implementation make TiKV attractive for infrastructure teams evaluating distributed storage internals.
Trade-offs
- Not an application database by itself: Most product teams should use TiDB or another higher-level database. TiKV is an infrastructure component that requires distributed systems skill to operate directly.
Tech stack
FAQ
Yes. TiKV is open source under the Apache-2.0 license.
TiKV is used as a distributed transactional key-value store and as the storage layer for TiDB.
DynamoDB is a managed AWS key-value and document database. TiKV is an open source distributed storage engine that teams operate themselves or use through TiDB.