Engineer Atlas
OverviewLearnInternalsModeling LabPlaygroundDatabase FinderRoadmapPracticeInterview
OverviewLearnInternalsModeling LabPlaygroundDatabase FinderRoadmapPracticeInterviewCheat SheetCompare
Database Engineering
  • Database Fundamentals
  • SQL
  • Relational Modeling
  • Normalization & Denormalization
  • Indexes
  • Query Execution & Optimization
  • Transactions
  • Concurrency & Isolation
  • PostgreSQL
  • Redis
  • NoSQL & Data Models
  • Vector Databases & Retrieval
  • Scaling
  • Distributed Databases
  • Caching
Database Internals
  • Overview
  • Build AtlasDB
  • Storage, Records & Pages
  • Index Internals
  • Buffer Management
  • WAL & Recovery
  • Transactions & MVCC Internals
  • LSM Trees
  • Query Engine
  • PostgreSQL & InnoDB Internals
  • Distributed Internals
  • Performance Internals
Database/Learn/Distributed Databases
Database Engineering

Distributed Databases

Replication, CAP without the slogans, quorums, consensus, leader election, and what a partition really costs you.

See how this works internally:Distributed Internals →
Replication and Read Scaling
▶ interactive

A primary streams its changes to replicas that serve reads; asynchronous replication is fast and lagging, synchronous is consistent and slow, and the "I saved it and see the old value" bug is replication lag meeting a naive read route.

Partitioning and Sharding
▶ interactive

Partitioning splits one table across pieces of one database; sharding splits data across separate database nodes — and everything that crosses a shard boundary (joins, transactions, uniqueness, aggregates) becomes the application’s problem.

Distributed Consistency: CAP, Quorums, Consensus
▶ interactive

CAP is not "pick two" — it is a choice you make only during a network partition, between refusing writes to stay consistent and accepting them to stay available; the rest of the time you are trading latency for consistency.

Engineer Atlas
GitHub·LinkedIn