Welcome to the Caching & Delivery module.

At Staff Engineering levels, caching isn’t just about “putting Redis in front of the DB.” It’s about data consistency models, avoiding thundering herds, and designing for failure.

Module Structure

1. Foundations: Patterns & Topologies

  • Strategies: Cache-Aside, Write-Through, Write-Back.
  • Topologies: When to use Sidecars vs. Centralized clusters.
  • Sharding: Handling Hot Keys and Partitions.

2. Advanced: Consistency & Coordination

  • Race Conditions: Why delete(key) is inherently race-prone.
  • Leases: How Facebook solves the “Thundering Herd” and Stale Sets.
  • CDC: Using the Transaction Log for reliable invalidation.

3. Global Delivery: CDNs & Edge

  • Anycast addressing and Edge compute patterns.
  • TCP optimization and Dynamic Site Acceleration.

Module Chapters