<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tidb on Kevin wang's blog</title><link>https://kevinwang930.github.io/categories/tidb/</link><description>Recent content in Tidb on Kevin wang's blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 06 Aug 2026 22:00:00 +0200</lastBuildDate><atom:link href="https://kevinwang930.github.io/categories/tidb/index.xml" rel="self" type="application/rss+xml"/><item><title>TiDB architecture: TiKV storage plane</title><link>https://kevinwang930.github.io/post/data/db/tidb/architecture/</link><pubDate>Thu, 06 Aug 2026 22:00:00 +0200</pubDate><guid>https://kevinwang930.github.io/post/data/db/tidb/architecture/</guid><description>&lt;p&gt;TiDB is an open-source, MySQL-compatible distributed SQL database: the &lt;strong&gt;TiDB&lt;/strong&gt; process handles SQL and transactions, &lt;strong&gt;PD&lt;/strong&gt; places data and issues timestamps, and &lt;strong&gt;TiKV&lt;/strong&gt; stores rows with Multi-Raft, MVCC, and RocksDB. This post covers architecture (planes and division of labor, Regions, TiKV store) then implementation of codecs, client-go, and &lt;code&gt;primaryKey&lt;/code&gt; 2PC—illustrated with a small &lt;code&gt;orders&lt;/code&gt; table. Grounded in &lt;code&gt;git/tidb&lt;/code&gt; and &lt;code&gt;github.com/tikv/client-go/v2&lt;/code&gt; (TiKV server raftstore/RocksDB at architecture level; in-tree &lt;strong&gt;unistore&lt;/strong&gt; for MVCC behavior where the &lt;code&gt;tikv/tikv&lt;/code&gt; tree is absent).&lt;/p&gt;</description></item></channel></rss>