Daily Term: Cache Aside
Cache Aside
Cache Aside, also known as lazy loading, is a caching pattern where the application is responsible for managing the cache. When data is needed, the app first checks the cache (e.g., Redis); if the data isn’t there (cache miss), it fetches it from the database and stores it in the cache for future use. Cache Aside is flexible and widely used, but it requires the app to handle cache misses and invalidation logic, which can lead to stale data if not managed properly.
Date: 2025-07-26