shared cache
A cache service, such as Redis, that all application servers read from and write to.
In more detail
There is one copy, so a key can be deleted for everyone, which makes invalidation possible. It costs a network hop of about a millisecond and becomes another dependency that can fail.
Related terms
- local cache — A cache kept inside one application process's own memory, such as a dictionary.
- Redis — A very fast in-memory data store used for shared caches, rate-limit counters, session data and pub/sub messaging.
- cache invalidation — Marking cached copies as out of date, or deleting them, when the real data changes so the next read fetches fresh data.
Taught in
- Caching Strategies And Topology — Scalable System Design & Distributed Architecture