System Design Foundations
LESSON 1.2

Caching layers and invalidation

Learn key techniques and workflows in System Design Foundations.

6m
intermediate
13,997 students

Overview

Caching is the cheapest performance win and the most common source of confusing bugs. Decide where it lives and what invalidates it before you add it.

In this lesson you will:

  • Place caches at the edge, application, or data layer
  • Choose a write strategy and an eviction policy
  • Plan invalidation before you plan the cache

Pro Tip

Design the invalidation path first. A cache you cannot invalidate is a bug with a latency benefit.

Resources