Data-Intensive Systems

How databases, replication, partitioning, transactions, consensus, batch and stream processing really work — the foundations behind every system design decision about data.

Most backend systems are limited by data, not by CPU: how much of it there is, how fast it changes, and how many copies must agree. This section explains the machinery under the databases, caches, queues and stream processors that the rest of the handbook uses as building blocks. It follows the structure of Martin Kleppmann’s Designing Data-Intensive Applications, with each idea connected back to Java, Spring and system design practice.

Foundations: one machine

  1. Reliability, Scalability and Maintainability — what the goals mean and how to measure load and performance.
  2. Data Models and Query Languages — relational, document and graph models.
  3. Storage Engines: LSM-Trees, B-Trees and Column Stores — how databases store and find data.
  4. Encoding and Schema Evolution — JSON, Protocol Buffers, Avro, and compatibility.

Distributed data: many machines

  1. Replication — leaders, followers, lag, multi-leader and leaderless quorums.
  2. Partitioning (Sharding) — splitting data by key or hash, secondary indexes, rebalancing and routing.
  3. Transactions and Isolation Levels — ACID, anomalies, snapshot isolation and serializability.
  4. The Trouble with Distributed Systems — partial failures, unreliable networks and clocks, fencing.
  5. Consistency and Consensus — linearizability, ordering, two-phase commit, Raft and Paxos.

Derived data: systems of systems

  1. Batch Processing — MapReduce, dataflow engines and joins at scale.
  2. Stream Processing — logs, change data capture, event sourcing and windows.

The system design building blocks apply these ideas to caches, load balancers, queues and ID generators, and the case studies apply them end to end.

Articles