Learning paths · Skills · Intermediate

Redis: fast data and its trade-offs

Why Redis is fast, which data structure fits which job, and what you give up for the speed: memory limits and eviction, persistence that can lose writes, asynchronous replicas, a cluster with hash slots, and locks with caveats.

0 of 11 done

The map

  • Not started
  • In progress
  • Done
  1. 01Why it is fastOne thread, the right structure0/3
  2. 02Using it wellCaches, atomic steps, messages, locks0/4
  3. 03Keeping it runningDisk, replicas, cluster, memory0/4
  4. 04Next: system designSame ideas, at service scale

Written for Redis Open Source 7.x and 8.x (the examples were run on 8.8). On licensing: Redis up to 7.2 was BSD-licensed. From 7.4 (2024) it was dual-licensed under RSALv2 and SSPLv1, which are source-available rather than open source licences, and from Redis 8 (2025) AGPLv3 was added as a third option. In March 2024 contributors forked Redis 7.2.4 as Valkey, under the BSD licence and backed by the Linux Foundation. The core ideas here apply to both; features added to either project since the fork may differ, so check the documentation of the one you run.

Where this path leads