Skip to content
EduVerse
Redis

Redis

In depth

Database

Blazing-fast in-memory data store used as a cache, session store and message broker.

Redis, explained

Written by EduVerse

What it is

Redis is an in-memory data store: it keeps data in RAM rather than on disk, so reads and writes are extremely fast. You store values under keys, with optional expiry times, and besides plain strings it supports lists, sets and hashes. It can save to disk, but it’s usually not where your main data lives.

Why teams use it

Your main database is reliable but slower under heavy load. Putting Redis in front of it as a cache means repeated questions get answered straight from memory, and counters with an expiry time make rate limiting simple. It also stores sessions and passes messages between services through pub/sub.

An example from work

Your product page takes two seconds because it runs the same heavy query on every visit. You cache the result in Redis under a key like product:42 with a five-minute expiry. In redis-cli, GET product:42 shows the cached JSON, and TTL product:42 shows how many seconds it has left.

Our own explanation, not a quote from the book.

In the book

Sentences from The Software Realm, Decoded that mention Redis, exactly as printed.

    4 more passages about Redis in the full book

    Read every conversation where Redis comes up, with the interactive slides and demos.

    See the book

    Where it fits

    Caching, session storage, pub/sub messaging, rate limiting

    Coverage in the book

    In depth

    Covered in depth: multiple pages with explanations, examples and simulations.

    Appears in