Redis (in-memory store).
The sticky-note wall by your desk for the things you grab constantly.
- 1
The database is the filing cabinet across the room — reliable, but a walk every time.
- 2
Keep the hot items on a sticky-note wall right by your desk: in memory.
- Got it — instantly.3
Grab from the wall instantly — memory is thousands of times faster than disk.
- 4
It is just memory, though: fast, but limited in size and wiped on power loss.
- 5
It is more than a cache — counters, queues, leaderboards, rate limits all fit.
- 6
So you keep a copy in the cabinet too, and let the wall hold what’s hot.
Semicolony semicolony.dev/eli5/redis/comic