Unit Study Document

Distributed Caching: Redis & CDN Edge Cache

7 min readβ€’Visual explainer included

The Caching Hierarchy

Rather than querying PostgreSQL for every single landing page request, we store read-heavy outputs in memory caches closer to the user.

Fast Drill

Active Recalls

Card 1 of 1
Question

What is Cache Aside pattern?

Tap card to flip
Answer

The application checks the cache first. If it's a miss, it queries the DB, stores the result in the cache, and returns it.

Mastery: 0%
Knowledge Check

Quiz Practice

Question 1 of 1
Which cache eviction policy removes the least recently used item first?

Chapter Scratchpad

Auto-saves immediately

Loading notes...

Active Recall Cards

Review core concepts before doing the quiz

Fast Drill

Active Recalls

Card 1 of 1
Question

What is Cache Aside pattern?

Tap card to flip
Answer

The application checks the cache first. If it's a miss, it queries the DB, stores the result in the cache, and returns it.

Mastery: 0%

Study Guide

Topic explainer