Part 1 of 7 · 1 min read
Why this page comes after the problems
In this module you will
- Compare a cache inside each application server with a shared cache server, on speed, consistency and load.
- Explain replicated and distributed caches, and the near-cache idea, and when each fits.
- Say what Memcached and Redis are used for, without relying on product details.
- Spread keys over cache nodes with consistent hashing, and say why adding a node should move few keys.
- Plan for the day the cache fails: bypass, shed load, keep a small local cache.
Module 4 showed what goes wrong. Many of the fixes (local copies, several nodes, consistent hashing) depend on where the cache runs. This page lays out the choices of place and the sizing that follows. The tier is Core. The numbers are made up to show the idea, unless the text names a book.