Caching patterns for lazy devs for lazy loading
summary
Shows concrete patterns implemented with Redis Stack and Spring Data plus MySQL in Docker containers, including cache-aside, read-through, write-through and write-behind, and a demo using RedisGears interceptors to sync writes. Write-through end-to-end persistence takes about three seconds in the demo, write-behind returns under a millisecond while syncing asynchronously, refresh-ahead is shown and CDC based replication is described but not implemented, and the cache provider handles reads/writes so application code stays unchanged.
AI-written summary · about
chapters (10)
- 0:00Intro
- 0:55What is caching
- 8:21Lazy loading
- 10:37Rich room
- 11:24Right through
- 17:37Demo
- 18:05Preparation
- 21:54Demonstration
- 27:37Implementation
- 29:13Outro
related talks
46mA Hitchhiker’s Guide to Caching Patterns
50mLet's talk about the cache!
47mCaching beyond simple put and gets
53mLeveraging Caching For Cloud Native Applications
43mWhere Is My Cache? Architectural Patterns for Caching ...
47mApplication design patterns with in-memory datastores
46mCaching Made Bootiful
45mWhere is my cache? Architectural patterns for caching microservices by example
