BlueprintBETA

← Roadmap / Level 4 · Caching · lesson 1 of 6

Lesson 4.1

Why and where to cache

What if? · 35 s

What if twenty million people checked the same results page at the same moment?

One page, one database read
BrowsershopperServerthe shopDatabasefind: 30 msproduct 42?find 4230 mspage1234requestreply
→ GET /product/42
→ database: find product 42
← database: found it (30 ms)
← 200 OK page ready in ~80 ms

In this lesson, we look at why systems keep copies of data, and where those copies can live. We start with an online shop.