Demystifying Performance
summary
Shows that simple changes to data layout and access dominate performance: arrays with sequential cache-line access hit billions of additions per second on a laptop while random pointer-chasing (maps to heap objects) collapses throughput; disk falls to hundreds of thousands and network to tens of thousands. Describes Kafka as a sequential reads and writes replicated log with batching and zero-copy, CockroachDB using hybrid logical clocks and retries for distributed transactions, and Aeron using ring buffers for ultra-low latency. Emphasizes durability vs latency tradeoffs, preallocation, locality, avoiding shared writable state, batching and measuring.
AI-written summary · about
chapters (31)
- 0:00Introduction to performance
- 1:11Speaker background and context
- 2:35Why performance fundamentals matter
- 4:23Application vs distributed performance
- 5:29CPU memory access basics
- 8:22Cache lines and data locality
- 10:28Benchmarking memory access speeds
- 11:54Hash maps and random access
- 13:23RAM and disk access patterns
- 14:28CPU cache happiness principles
- 15:30Synchronization and concurrency costs
- 17:14Data structures and algorithms matter
- 18:39Avoiding unnecessary features
- 19:21Distributed systems fundamentals
- 20:46Embarrassingly parallel workloads
- 21:09ACID and durability tradeoffs
- 23:18Two-phase commit explained
- 24:43Consistency models overview
- 26:53Strong vs eventual consistency
- 27:13Apache Kafka deep dive
- 29:42When to use Kafka
- 30:04Redis performance secrets
- 32:11CockroachDB architecture
- 33:38Conflict-free data types
- 35:25Aeron ultra-low latency
- 37:09Ring buffers and backpressure
- 38:11Garbage collection impact
- 39:35Durability versus latency tradeoff
- 40:19Key performance takeaways
- 41:26Importance of measurement
- 42:09Q&A with engineering manager
