View on GitHub

Caching and the hardest problem in computer science

Backend planned

Your app got 50 times faster. Then it showed yesterday’s prices.

The idea

A cache keeps the answer to an expensive question so the next request is instant. The hard part is knowing when that answer is no longer true.

This lesson builds a cache with expiry and an LRU eviction policy, then breaks it with stale data and fixes it with invalidation.

What the lesson will build

Key ideas

The video

When it’s published, the code will live in backend/ and this page will link to it.


All topics · Suggest a topic