The bootcamp classes
Sign in with the account you enrolled with to watch your classes.
free previewClass 3: Load balancers, caches, CDNs and databasesfree: the first 3:00
Class 3 · The building blocks
Load balancers, caches, CDNs and databases
1:35:33 · added 2026-11-15
What this class covers
- Why every later design is built from four building blocks
- Load balancers: layer 4 and layer 7, and what each can see
- Load balancers: round robin or least connections, with one slow server
- Load balancers: when a server dies in the middle of a request
- Load balancers: follow-up questions and drills
- Caches: cache-aside step by step, and the hit ratio
- Caches: keeping the cached copy correct when the data changes
- Caches: eviction, and what a full cache throws away
- Caches: the cache stampede, and how a lock and a second look stop it
- CDNs: the distance problem, and what our own site's replies show
- CDNs: what to put on a CDN, what to keep off it, and drills
- Databases: read copies, and why they can be a little behind
- Databases: indexes, and what they cost on every write
- Databases: sharding and consistent hashing
- Databases: SQL or NoSQL, and a lab of six real scenarios
- Knowledge check, what to keep and homework