Technology · Ebook
TiKV: Distributed Transactional Key-Value Store
by Shriira Press
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
- 1Preface
- 2Chapter 1 — What TiKV Is
- 3Chapter 2 — Distributed Database Fundamentals
- 4Chapter 3 — Architecture
- 5Chapter 4 — Storage, Regions, and Replication
- 6Chapter 5 — Raft and Strong Consistency
- 7Chapter 6 — Distributed Transactions
- 8Chapter 7 — The Placement Driver (PD)
- 9Chapter 8 — Performance and Scaling
- 10Chapter 9 — Reliability, Recovery, and the Ecosystem
- 11Chapter 10 — Operating TiKV and Putting It Together
