When it comes to choosing, using, and maintaining a database, understanding its internals is essential. But with so many distributed databases and tools available today, it’s often difficult to understand what each one offers and how they differ. With this practical guide, Alex Petrov guides developers through the concepts behind modern database and storage engine internals. Throughout the book, you’ll explore relevant material gleaned from numerous books, papers, blog posts, and the source code of several open source databases. These resources are listed at the end of parts one and two. You’ll discover that the most significant distinctions among many modern databases reside in subsystems that determine how storage is organized and how data is distributed. This book examines: Storage engines: Explore storage classification and taxonomy, and dive into B-Tree-based and immutable Log Structured storage engines, with differences and use-cases for each Storage building blocks: Learn how database files are organized to build efficient storage, using auxiliary data structures such as Page Cache, Buffer Pool and Write-Ahead Log Distributed systems: Learn step-by-step how nodes and processes connect and build complex communication patterns Database clusters: Which consistency models are commonly used by modern databases and how distributed storage systems achieve consistency

Before you start, a short look at what you will learn in this book
In the preface, settle the general questions you have at a glance, so your view widens and your choice is more informed. Questions such as: Why was this book written and what problem does it solve? Who can use the book? A summary of the chapters and the learning goals of each part? The important changes and new improvements added across editions, and so on — we cover all of these for you.
This book is designed for software developers who wish to move beyond superficial database usage and gain a deep understanding of how they function internally. This knowledge will help them build more efficient and scalable applications.
Data and system engineers involved in designing, implementing, and maintaining complex data infrastructures are a primary audience for this book. It offers practical insights for optimizing system performance and reliability.
System architects responsible for selecting database technologies and designing the overall architecture of distributed systems will benefit from this book. It helps them make architectural decisions based on a comprehensive understanding of trade-offs and limitations.
Anyone curious about how databases store, retrieve, and manage data will find this book invaluable. It explains complex concepts in an accessible manner, providing a solid foundation for deeper understanding.
This book helps developers effectively choose, use, and maintain databases by providing a deep understanding of their internal structures. By exploring the intricacies of storage engines and distributed systems, readers can make more informed design decisions.
Given the vast array of distributed databases and tools, this guide clarifies the key differences and capabilities of each. This empowers engineers to select the most suitable tools for their specific project requirements.
The book's content is meticulously gathered from numerous sources, including books, papers, blog posts, and the source code of open-source databases. This comprehensive approach provides a rich, evidence-based perspective on complex concepts.
The book emphasizes that significant distinctions among modern databases lie in how storage is organized and data is distributed. By focusing on these subsystems, readers gain a profound understanding of storage system architecture.
This book serves as a comprehensive guide to understanding the internal workings of modern databases. It delves deeply into storage engines and distributed systems, providing essential technical details for engineers.
The book's content is well-organized and derived from authoritative sources and real-world database source code. This practical approach makes it a reliable resource for learning complex concepts.
The work clearly explains the distinctions between various databases, helping readers make informed decisions about data system selection and implementation. Its comprehensive coverage, from B-Trees to consistency models, makes it highly valuable.
The book is highly suitable for developers and system engineers seeking a deeper understanding of how data is stored and distributed. It not only introduces concepts but also delves into implementation details and practical challenges.
14 chapters in production
Reading time
10:23
Book type
Subscription
Participants
Be the first
Last updated
Oct 1, 2026