Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Skill

Caching Strategies

Place caches where they cut latency and load, choose read and write strategies, and control staleness, stampedes and hot keys.

Intermediate2 roadmaps

4 objectives 6 steps about 135 min

Learn it step by step

Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.

Start learning

This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.

Learning objectives

  • Choose cache placement (HTTP client and CDN, reverse proxy, application, database) and a pattern (cache-aside, read-through, write-through, write-behind, refresh-ahead) for a read/write profile.
  • Design invalidation, TTL and HTTP caching rules (Cache-Control, ETag revalidation) for API responses, and state the maximum staleness users can observe.
  • Size a cache from working set and target hit ratio, and estimate the resulting load on the backing store.
  • Prevent cache stampedes, hot-key overload and cache-induced inconsistency with techniques such as request coalescing, jittered TTLs and versioned writes.

Lesson plan

6 steps, about 135 min · 5 of 5 lessons available so far

Practise it

Add cache-aside caching to a read-heavy endpoint, measure hit ratio and p99 latency before and after, then trigger a stampede by expiring a hot key under load and fix it with request coalescing or early refresh.

Build it from scratch

Practice builds that exercise this skill by re-creating a real technology.

Browse 10 tutorials that practise it

References

Hard prerequisites

None.

Unlocks

On these roadmaps

Progress and evidence for this skill are shared across all of them.