Caching & Scaling
Caches, scaling reads and writes, and autoscaling.
5 notes · 42 min total
- 1CachingWhy caches make reads fast, where they live, how data gets in and out, and how to keep cached data fresh.11 min
- 2Distributed CacheWhen to put a shared cache cluster in front of your database, Redis vs Memcached, spreading keys across nodes, and preventing stampedes.4 min
- 3Scaling ReadsHow read replicas, caches, CDNs, denormalization, search indexes and CQRS each take read load off your primary database.9 min
- 4Scaling WritesHow to handle more writes than one database can take: cheap optimizations first, then queues, batching, partitioning and sharding.10 min
- 5Autoscaling: Policies, Cooldowns and Health ChecksHow autoscaling picks capacity: scheduled, reactive and predictive policies, good metrics, cooldowns, health checks and safe scale-in.8 min