TiKV: Distributed Transactional Key-Value Store cover

Technology · Ebook

TiKV: Distributed Transactional Key-Value Store

by Shriira Press

4.8(620)182 pagesPublished 2026

TiKV is a distributed, transactional key-value database that scales horizontally while providing strong consistency and distributed ACID transactions — combining properties usually traded off against each other. This free book teaches it from the ground up: distributed-database fundamentals (sharding, replication, consistency, transactions), TiKV's architecture (the Placement Driver, TiKV nodes, regions), storage and region sharding/replication, the Raft consensus and multi-Raft design that deliver strong consistency at scale, distributed transactions with MVCC and a Percolator-style two-phase commit, the Placement Driver in depth, performance and scaling (and the hotspot pitfall), reliability and recovery, the relationship to TiDB, and operating TiKV in production. Ten focused chapters with clear diagrams that show how TiKV delivers database-grade correctness with distributed-system scalability.

Contents

  1. 1Preface
  2. 2Chapter 1 — What TiKV Is
  3. 3Chapter 2 — Distributed Database Fundamentals
  4. 4Chapter 3 — Architecture
  5. 5Chapter 4 — Storage, Regions, and Replication
  6. 6Chapter 5 — Raft and Strong Consistency
  7. 7Chapter 6 — Distributed Transactions
  8. 8Chapter 7 — The Placement Driver (PD)
  9. 9Chapter 8 — Performance and Scaling
  10. 10Chapter 9 — Reliability, Recovery, and the Ecosystem
  11. 11Chapter 10 — Operating TiKV and Putting It Together