System Design Ch.3: Caching Patterns

Бизнесу нужен калькулятор? Создайте в uCalc!
25 Просмотры
Издатель
Caching looks like a simple performance trick until the day one hot key expires and your database gets hit by 10,000 identical misses at once. That is the moment it stops being a micro-optimization and becomes a system survival problem.

This episode breaks down caching as a structural tradeoff, not a Redis tutorial. We cover cache-aside, write-through, write-behind, TTL as a business rule, thundering herd failures, jitter, cache locks, CDN fragmentation, and why the real design work happens on the miss path, not the hit path.

0:00 Fast Per Request, Expensive in Aggregate
0:35 One Expired Cache Key
1:40 Two Versions of Reality
2:04 The Staleness Budget
3:15 Cache-Aside
3:55 The Race Condition
4:35 Write-Through
5:36 Write-Behind
7:14 TTL Is a Business Rule
7:50 The Thundering Herd
8:52 Jitter
9:31 Let One Request Pay the Miss
10:17 CDN and Personalization
10:56 Memcached vs Redis
11:20 The Miss Path Is the Real Design
11:50 Next: Message Queues

Full series (18 chapters):
1. System Design Ch.1: Framework Over Tools: https://youtu.be/TZL5O0A-uq4
2. System Design Ch.2: Replication and Consistency: https://youtu.be/xQFbWnCoDbk
3. System Design Ch.3: Caching Patterns (this video): https://youtu.be/KLMAjGlPdo8
4. System Design Ch.4: Message Queues: https://youtu.be/AiTMIguGKPU
5. System Design Ch.5: Rate Limiters: https://youtu.be/cJs4qufCKE4
6. Design a Distributed Cache
7. Design a Chat System
8. Design a Notification System
9. Design a News Feed
10. Design a Search Autocomplete
11. Design a Video Streaming Platform
12. Design a Distributed Key-Value Store
13. Design a Distributed Job Scheduler
14. Design a Content Moderation Pipeline
15. Design a Multi-Region Database
16. Design a Metrics and Alerting System
17. Design a Payment System
18. Design a Search Engine

Категория
Бизнес
Комментариев нет.