Stencel AcademyHow Infrastructure Works →
Part 3 · Lesson 14 · Advanced

Caches & CDNs

The fastest query is the one you never make.

In this interactive Infrastructure lesson from Stencel Academy you don't just read — you type real commands like redis-cli -h cache-01 GET user:42, redis-cli -h cache-01 SET user:42 '{"plan":"pro"}' EX 300 and watch the machine respond on a live, animated map. It is part of the free How Infrastructure Works course.

Key takeaway: A cache answers from memory in microseconds; misses fall through to the database. TTLs keep stale answers honest.

Before this lesson

Builds on: Databases: Where State Lives.

What you'll practise

Terms you'll learn

cache hit / missTTLeviction (LRU)CDNcache invalidation

Check your understanding

What happened on the cache miss?
Open the interactive lesson →