Caching & Delivery
Explore 6 caching strategies, compare CDN and storage providers, and find the right cache for your workload.
Cache-Aside (Lazy Loading)
ApplicationThe application checks the cache first; on a miss it reads from the database, then populates the cache before returning the result.
Read-Through Cache
ApplicationThe cache itself is responsible for loading data from the database on a miss, presenting a single unified read interface to the application.
Refresh-Ahead Cache
ApplicationThe cache proactively refreshes entries before they expire, ensuring that frequently accessed data is always served from cache with consistently low latency.
Write-Around Cache
ApplicationWrites go directly to the database, bypassing the cache entirely; data only enters the cache when it is subsequently read, avoiding cache pollution from write-heavy data that is rarely read.
Write-Behind (Write-Back) Cache
ApplicationWrites go to the cache immediately and are asynchronously flushed to the database in the background, trading durability risk for dramatically lower write latency.
Write-Through Cache
ApplicationEvery write goes to the cache and the backing database synchronously in a single operation, ensuring the cache is always consistent with the database.