What is cache-aside (lazy loading) and when do you use it?
spaceto flip
Application checks cache first. On miss, reads from DB, then writes result to cache. The most common pattern. Use for read-heavy workloads where you can tolerate some staleness. The application owns the caching logic. Data is only cached when requested (lazy).