Tag: design-database
All the articles with the tag "design-database".
-
System Design - How TiDB ADMIN CHECKSUM TABLE Works in Source
Trace TiDB's ADMIN CHECKSUM TABLE through five structs in TiDB and TiKV: snapshot selection, table and index tasks, CRC64-XOR scanning, result reduction, and concurrency settings.
-
System Design - How Redis Cluster Routes Keys and Survives Failures
A guided tour of Redis Cluster's hash slots, client routing, resharding redirects, gossip, replica elections, and write-safety trade-offs.
-
System Design - How TiDB Parallel Hash Aggregation Works in Source
A source-level tour of TiDB's root HashAgg plan, partial and final workers, group-key routing, result chunks, and memory spill settings.
-
System Design - How TiDB Isolates a Failed Statement Inside a Transaction
A source walkthrough of TiDB's LazyTxn and MemBuffer staging: how a successful statement joins a transaction while a failed statement's writes are discarded.
-
System Design - How TiKV Checks and Splits Large Regions
Trace TiKV's classic Raftstore split check from an encoded TiDB key to a validated BatchSplit request, including the worker, thresholds, and key configs.
-
System Design - How TiDB Retries Coprocessor Tasks After Region Splits
Trace one TiDB coprocessor scan from key ranges to region tasks, then follow an EpochNotMatch response through the region cache and task rebuild.