Designing Data-Intensive Applications in one scroll: what each of the 12 chapters covers, the book sections it walks through, and five takeaways worth remembering. Open any chapter to step through it as an interactive diagram.
PART I
Foundations of Data Systems
What makes a system reliable, scalable and maintainable — and the data models, storage engines and encodings everything else is built on.
Chapter 1
Reliable, Scalable, and Maintainable Applications
PDF p.25–48 14 min
The three concerns behind every data system — and how to reason about them with numbers, not buzzwords.
Thinking About Data SystemsReliabilityScalabilityMaintainability
In this chapter
Why an app is really a data system built from smaller tools
1Linearizability makes a replicated system behave as if there were a single copy of the data, with every operation taking effect atomically at one instant.
2Linearizability is needed for locks, leader election and uniqueness constraints, but it is slow and becomes unavailable during network partitions.
3Causal consistency is weaker but much cheaper; Lamport timestamps give a total order that respects causality, yet can’t decide things like username uniqueness in real time.
4Total order broadcast, linearizable compare-and-set, atomic commit and leader election are all equivalent to consensus.
5Fault-tolerant consensus (Raft, Paxos, Zab) uses epochs and majority quorums; most apps should outsource it to ZooKeeper or etcd rather than inventing their own.
PART III
Derived Data
Systems that compute data from other data: batch jobs, event streams, and how to compose them into correct, humane applications.
Chapter 10
Batch Processing
PDF p.411–460 16 min
Crunch a huge, fixed pile of input into derived data — from Unix pipes to MapReduce and Spark.
Batch Processing with Unix ToolsMapReduce and Distributed FilesystemsBeyond MapReduce
In this chapter
How online services, batch jobs and stream processors differ
What the Unix philosophy teaches about composable data processing
How map → shuffle → reduce runs on a distributed filesystem
Reduce-side vs map-side joins, and what to do about hot keys
Why dataflow engines like Spark and Flink replaced plain MapReduce
1Batch jobs read a bounded, immutable input and produce derived output; they’re judged by throughput, not latency.
2Unix tools show the core ideas: a uniform interface, small composable programs, and inputs that are never modified.
3MapReduce runs mappers next to the data on a distributed filesystem, sorts and shuffles their output by key, then reduces each key group.
4Joins can happen in reducers (sort-merge) or in mappers (broadcast or partitioned hash joins) when you know more about the inputs.
5Dataflow engines (Spark, Tez, Flink) pipeline operators instead of writing every intermediate result to disk, recovering from faults by recomputation.
Chapter 11
Stream Processing
PDF p.461–510 17 min
When the input never ends: brokers, logs, change data capture, windows and joins over events in motion.
Transmitting Event StreamsDatabases and StreamsProcessing Streams
In this chapter
How traditional message brokers differ from log-based brokers like Kafka
Why dual writes go wrong and how change data capture fixes them
What event sourcing is and why immutable events help
Event time vs processing time, and the four kinds of windows
Stream joins and how stream processors get exactly-once results
1A stream is an unbounded sequence of small, immutable events; producers publish them and consumers subscribe via a broker.
2AMQP/JMS-style brokers delete messages once acknowledged, while log-based brokers (Kafka) keep an ordered, partitioned log that consumers read by offset and can replay.
3Change data capture and event sourcing turn a database into a stream, keeping search indexes, caches and warehouses in sync without fragile dual writes.
4Stream processors must reason about event time vs processing time, straggling events and windows (tumbling, hopping, sliding, session).
5Fault tolerance with “effectively once” semantics comes from microbatching, checkpointing, atomic commits and idempotent writes.
Chapter 12
The Future of Data Systems
PDF p.511–574 16 min
Compose many specialised tools around a log, build apps as dataflow, verify correctness end to end — and use data responsibly.
Data IntegrationUnbundling DatabasesAiming for CorrectnessDoing the Right Thing
In this chapter
Why derived data via an ordered log beats distributed transactions for integration
Lambda vs. unified batch-and-stream architectures, and gradual reprocessing
What “unbundling the database” means for application design
How end-to-end request IDs prevent duplicate side effects
Timeliness vs. integrity, auditing, and the ethics of data
1No single tool fits every access pattern, so real systems combine databases, indexes, caches and warehouses kept in sync from one system of record.
2Deriving data asynchronously through an ordered event log is more robust and scalable than keeping systems in sync with distributed transactions.
3“Unbundling” treats indexes, caches and materialized views as derivation functions over a log — application code becomes dataflow.
4Exactly-once inside one system isn’t enough: end-to-end request IDs and idempotent operations prevent duplicates across the whole path.
5Integrity matters more than timeliness; audit and verify continuously, and treat personal data with care — predictions and surveillance have real human costs.