caching
Practical resources about caching for software engineers.
38 results
Speeding Up Applications with Caching
Caching is one of the highest-impact optimizations available to engineers. A well-placed cache can reduce database load by orders of magnitude and turn slow endpoints into sub-millisecond responses.
Discover patterns for in-memory caching with Redis, CDN edge caching, cache-aside and write-through strategies, and invalidation approaches. Each recipe discusses consistency trade-offs and provides production-tested configuration examples.
Cache Invalidation Pattern
Strategies for keeping cached data fresh: TTL expiration, explicit invalidation, write-through, and...
Cache Stampede Prevention Pattern
Prevent thundering herd cache misses with locks, single-flight, and early refresh strategies to...
Read-Through Cache Pattern
A transparent cache layer that intercepts read requests, fetches from the data source on miss, and...
Refresh-Ahead Cache Pattern
Proactively refresh cache entries before they expire to eliminate cache misses on hot keys and...
Two-Level Cache Pattern
Combine an L1 in-memory cache with an L2 distributed cache to reduce latency for hot keys while...
Write-Behind Cache Pattern
Write to cache synchronously and persist to the database asynchronously for high-throughput write...
Write-Through Cache Pattern
Synchronously write to both cache and backing store so the cache always has the latest data without...
Cache Eviction Policy Template
Template for documenting cache eviction rules per cache layer: LRU, LFU, TTL, FIFO, random...
Cache Strategy Decision Template
Decision template for choosing cache strategies per use case: no-cache, cache-aside, read-through,...
Cache Warmup Runbook
Runbook for warming caches after deployment, restart, or incident: identify hot keys, preload...
CDN Cache Rules Template
Template for defining CDN caching rules and edge behavior: cache keys, TTL by content type, query...
Complete Guide to LLM Cost Optimization
Optimize LLM costs in production. Covers model routing, prompt compression, caching, batch API,...
Complete Guide to GraphQL Caching
Cache GraphQL responses at every layer: CDN, gateway, DataLoader, persisted queries, and...
Complete Guide to Application-Level Caching
Implement in-memory, distributed, and hybrid caches at the application layer. Covers LRU caches,...
Complete Guide to Cache Invalidation
Master cache invalidation strategies: TTL expiration, event-driven invalidation, versioned keys,...
Complete Guide to CDN Caching Strategy
Design CDN caching for web applications and APIs. Covers edge caching, cache keys, cache headers,...
Complete Guide to Redis Caching Strategies
Master Redis caching with cache-aside, read-through, write-through, write-behind, and refresh-ahead...
Complete Guide to Redis in Production
Run Redis in production. Covers persistence (RDB, AOF), clustering, sentinel for HA, failover...
No results found.