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.

intermediate

Cache Invalidation Pattern

Strategies for keeping cached data fresh: TTL expiration, explicit invalidation, write-through, and...

advanced

Cache Stampede Prevention Pattern

Prevent thundering herd cache misses with locks, single-flight, and early refresh strategies to...

intermediate

Read-Through Cache Pattern

A transparent cache layer that intercepts read requests, fetches from the data source on miss, and...

advanced

Refresh-Ahead Cache Pattern

Proactively refresh cache entries before they expire to eliminate cache misses on hot keys and...

advanced

Two-Level Cache Pattern

Combine an L1 in-memory cache with an L2 distributed cache to reduce latency for hot keys while...

advanced

Write-Behind Cache Pattern

Write to cache synchronously and persist to the database asynchronously for high-throughput write...

intermediate

Write-Through Cache Pattern

Synchronously write to both cache and backing store so the cache always has the latest data without...

intermediate

Cache Eviction Policy Template

Template for documenting cache eviction rules per cache layer: LRU, LFU, TTL, FIFO, random...

intermediate

Cache Strategy Decision Template

Decision template for choosing cache strategies per use case: no-cache, cache-aside, read-through,...

intermediate

Cache Warmup Runbook

Runbook for warming caches after deployment, restart, or incident: identify hot keys, preload...

intermediate

CDN Cache Rules Template

Template for defining CDN caching rules and edge behavior: cache keys, TTL by content type, query...

advanced

Complete Guide to LLM Cost Optimization

Optimize LLM costs in production. Covers model routing, prompt compression, caching, batch API,...

advanced

Complete Guide to GraphQL Caching

Cache GraphQL responses at every layer: CDN, gateway, DataLoader, persisted queries, and...

advanced

Complete Guide to Application-Level Caching

Implement in-memory, distributed, and hybrid caches at the application layer. Covers LRU caches,...

caching in-memory distributed-cache guide
advanced

Complete Guide to Cache Invalidation

Master cache invalidation strategies: TTL expiration, event-driven invalidation, versioned keys,...

advanced

Complete Guide to CDN Caching Strategy

Design CDN caching for web applications and APIs. Covers edge caching, cache keys, cache headers,...

advanced

Complete Guide to Redis Caching Strategies

Master Redis caching with cache-aside, read-through, write-through, write-behind, and refresh-ahead...

advanced

Complete Guide to Redis in Production

Run Redis in production. Covers persistence (RDB, AOF), clustering, sentinel for HA, failover...

No results found.