Semicolony ELI5 · comic

Redis (in-memory store).

The sticky-note wall by your desk for the things you grab constantly.

  1. a walk every time database
    1

    The database is the filing cabinet across the room — reliable, but a walk every time.

  2. 2

    Keep the hot items on a sticky-note wall right by your desk: in memory.

  3. Got it — instantly.
    ~10 µs
    3

    Grab from the wall instantly — memory is thousands of times faster than disk.

  4. fast limited volatile
    4

    It is just memory, though: fast, but limited in size and wiped on power loss.

  5. 42 counter queue leaderboard
    5

    It is more than a cache — counters, queues, leaderboards, rate limits all fit.

  6. source hot copies
    6

    So you keep a copy in the cabinet too, and let the wall hold what’s hot.

Keep the hot stuff in memory, right by the desk — not across the room.
Semicolony semicolony.dev/eli5/redis/comic
← All ELI5 explainers