Redis C redis/redis

Redis Tours

10 tours available

Getting Started with Your First Contribution to Redis

beginner

Walk through README orientation, the root Makefile, the redis-server main() entry, the runtest Tcl harness, the src/commands/ command-definition pattern, CONTRIBUTING.md and the tri-license, and a pointer to the event loop.

7 stops ~18 min
Prerequisites: Comfortable reading C (you do not need to write it, just trace the logic), Familiarity with make and a POSIX shell
credisfirst-contributionbuildtcl-tests

Architecture Grand Tour

intermediate

Walk through the Redis event loop, command dispatch, data structures, and persistence layer.

8 stops ~25 min
Prerequisites: Basic C reading ability, Understanding of key-value stores
architectureevent-looppersistencedata-structures

Redis Replication: How Primaries and Replicas Stay in Sync

intermediate

How a replica connects, bootstraps from an RDB snapshot, and stays current through command propagation

7 stops ~25 min
Prerequisites: Comfortable reading C (you don't need to write it, just follow the logic), Basic understanding of Redis as a primary/replica system: what REPLICAOF does, Familiarity with the concept of fork() and copy-on-write memory is helpful but not required
replicationpsynchigh-availabilitydistributed-systems

Redis Streams: A Log With Consumer Groups

intermediate

How Redis stores an append-only log in a radix tree, delivers messages to consumer groups, and tracks unacknowledged entries in the pending entries list

7 stops ~30 min
Prerequisites: Familiarity with Redis commands: XADD, XREAD, XREADGROUP, XACK, XCLAIM, XTRIM, Comfortable reading C structs and pointer manipulation, Basic understanding of hash tables or trees as index structures
streamsconsumer-groupsradix-treexaddxreadgroup

Redis Sentinel: Watch, Vote, Fail Over

intermediate

How Sentinel detects failures, elects a leader, and promotes a replica without human intervention

7 stops ~30 min
Prerequisites: Familiarity with Redis replication: what a master is, what a replica does, and what `SLAVEOF` means, Comfortable reading C structs and flag bitmasks, Basic understanding of distributed consensus concepts (majority vote, epochs) is helpful but not required
sentinelhigh-availabilityfailoverraft

Redis Pub/Sub: Channels, Patterns, and Keyspace Notifications

intermediate

How Redis routes messages from publishers to subscribers using channel dicts, glob patterns, and automatic keyspace events

6 stops ~20 min
Prerequisites: Familiarity with the Redis `SUBSCRIBE`/`PUBLISH` commands from a client perspective, Comfortable reading C structs and pointer indirection, Understanding of hash tables (dict) and why lookup is O(1)
pubsubmessagingkeyspace-notificationssharded-pubsub

Redis Persistence Deep Dive: RDB, AOF, and the Hybrid

intermediate

How Redis survives a restart: binary snapshots, append-only logs, and the hybrid mode that combines both

8 stops ~30 min
Prerequisites: Comfortable reading C (you don't need to write it, just follow the logic), Familiarity with what `fork()` does in Unix processes, Basic understanding of Redis data types: strings, hashes, lists, sets, sorted sets
persistencerdbaoffsyncforkdurability

Redis Cluster: Sharding, Gossip, and Failover

advanced

How Redis distributes data across nodes, detects failures through gossip, and promotes replicas without human intervention

7 stops ~30 min
Prerequisites: Comfortable reading C (you don't need to write it, just follow the logic), Basic understanding of key-value stores and what a Redis shard means, Familiarity with CRC and hash functions is helpful but not required
clustergossipshardingfailoverhash-slots

Redis Data Structures & Encoding: How Values Live in Memory

advanced

From raw bytes to skip lists: the memory layouts that make Redis fast and compact

8 stops ~30 min
Prerequisites: Comfortable reading C structs and pointer arithmetic (you don't need to write it, just follow the layout), Basic understanding of Redis key-value types: what a list, set, hash, and sorted set are, Familiarity with the idea of memory alignment and struct packing is helpful but not required
data-structuresencodingsdsdictskiplistlistpack

RESP Protocol Deep Dive: How Redis Talks Over the Wire

advanced

Eight stops through the parsing, reply, and negotiation code that drives every Redis client connection

8 stops ~30 min
Prerequisites: Comfortable reading C (you do not need to write it, just trace the logic), Basic familiarity with TCP and the idea of a client sending text commands to a server, Having used a Redis client (e.g. `redis-cli`) at least once is helpful
respprotocolwire-formatresp3pipelining
Your codebase next

Create code tours for your project

Intraview lets AI create interactive walkthroughs of any codebase. Install the free VS Code extension and generate your first tour in minutes.

Install Intraview Free