Day 16 / Daily GitHub Discovery / Databases

Valkey

A Redis-protocol-compatible in-memory datastore for caching and real-time workloads.

~27,000 stars · checked Sep 28, 2026
CC++POSIXepollkqueueRESP
Visit GitHub (opens in a new tab)

What it does

Valkey is a high-performance key-value database maintained as an open project under the Linux Foundation. It supports familiar Redis clients and commands for caching, sessions, and messaging.

Why it’s interesting

Its event loop and storage structures make a useful systems-programming case study. Check the current compatibility and migration notes before changing production services.

Real-world use case

Run Valkey in development or CI and connect with your existing Redis client to test cache behavior.

What I can learn

  • 01

    Event-driven networking

    inspect non-blocking socket processing.

  • 02

    Memory structures

    understand strings, dictionaries, and sorted sets.

  • 03

    Cluster behavior

    study slot ownership and failure handling.

One thing to explore

Networking and command loop

Follow the src implementation and connect it to the concepts above.

Explore the source (opens in a new tab)

10-Minute Challenge

Try basic key-value commands

Before you start: Docker installed; port 6379 must be free.

  1. Start a disposable Valkey container.
  2. Connect using valkey-cli.
  3. Set a key, read it, and inspect the server information.
Terminal
docker run --rm -d --name test-valkey -p 127.0.0.1:6379:6379 valkey/valkey:latestdocker exec -it test-valkey valkey-cli# SET user:status learning# GET user:status# INFO server

Keep exploring

All repositories →