# Database Internals: A Deep Dive into How Distributed Data Systems Work

Petrov's O'Reilly survey (2019) split into two halves: storage engines (B-trees, LSM-trees, file formats, recovery) and distributed systems (failure detection, leader election, replication, consensus, transactions across nodes). The reading list every working database engineer eventually reaches; less foundational than Bernstein but broader and current. Read by the [[eatonphil-bookclub]] in 2023: [cohort page](https://eatonphil.com/2023-database-internals.html).

Related: [[lsm-tree]], [[lsm-trees-nosql]], [[distributed-consensus]], [[byzantine-fault]].
