Learn Everything

Module · Backend Engineer

Caching & Performance

The fastest request is the one you never make - if the cache stays correct.

2 topics4 interactive tasks

TOPIC 01

Cache Strategies

Read-through, write-around and the stampede you get when a hot key expires.

What you'll practice

  • Choose a Read-Through Policy — guided · beginner
  • Defend Against a Cache Stampede — practice · intermediate

A command you'll meet

cat ~/backend/cache/policy.yaml

A cache without a TTL is a bug waiting for a bad day. Open the task below for the full walkthrough.

TOPIC 02

Invalidation & Measurement

How a cached value is thrown away, and how you know the cache is worth keeping.

What you'll practice

  • Invalidate from Events, Not from Code — practice · intermediate
  • Measure the Hit Ratio — challenge · advanced

A command you'll meet

cat ~/backend/cache/metrics.md

If you cannot measure the cache, you cannot argue for it. Open the task below for the full walkthrough.