Skip to main content
Cachingchapter 2 of 8 · 2 lessons

Client and In-Process Caches

The two places a copy can sit that are faster than Redis, and harder to correct.

Two of the four places a cache can live get a chapter to themselves later on. The shared cache is Redis, and the edge is the CDN.

The other two sit closer to the reader than either, and both are faster than Redis for the same reason: no network is involved. That is also what makes them awkward. A copy you cannot reach is a copy you cannot correct.

Lessons

2 in this chapter
  1. Client-Side CachingThe fastest cache is the one on the user's device, and the one you can never take back.2 min
  2. In-Process CachingA map in your own memory, faster than Redis, and wrong on nine servers out of ten.2 min