Back to Concepts
#19

Caching

Caching is using a high-speed data storage layer (RAM) to store a subset of data so that future requests for that data are served faster.

It's like keeping your most used tools on your belt instead of walking to the garage (Database) every time you need them.

  • Cache Hit Data found in cache (Fast)
  • Cache Miss Data not in cache, fetch from DB (Slow)
👨‍💻
User
Cache (RAM)
Database (Disk)
A
B
C
Ready
Time: 0ms