Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Coursera

Valkey From Zero

Pragmatic AI Labs via Coursera

Overview

AI, Data Science & Cloud Certificates from Google, IBM & Meta — 50% Off
One plan covers every Professional Certificate on Coursera. 50% off Coursera Plus Annual for 10 days only — price increases June 17.
Unlock All Certificates
Use Valkey — the Apache-2.0 fork of Redis maintained by the Linux Foundation — as the cache, stream, and coordination primitive at the heart of a Rust service. This course is the most direct path from `cargo add redis` to a real-time data pipeline that survives partitions and operator changes. You begin with the license rift and what wire compatibility means in practice, then dive into the four data shapes that drive every Valkey workload — strings with TTL, hashes with per-field expiry, lists as queues, and sorted sets as the leaderboard primitive. From there the course turns to streams + consumer groups (the data-engineering core), XADD and XREADGROUP for exactly-once delivery, plus XPENDING + XCLAIM for failure handling. The back half covers the patterns that make Valkey production-grade in Rust: pipelining for round-trip math, MULTI/EXEC with WATCH for multi-key atomicity, EVAL and the script cache for server-side atomicity, connection-pool sizing under load, and criterion for honest p50/p99 benchmarking. The course closes with the operational story — RDB vs AOF, replication, Sentinel failover, cluster sharding, and the split-brain accounting that "highly available" actually buys you.

Syllabus

  • Strings, Hashes & Key Namespaces
    • Connect Rust to Valkey through redis-rs and master the four data shapes that drive every workload — strings with TTL, hashes with per-field expiry, and the keyspace trait pattern for type-safe keys.
  • Lists, Sets, Sorted Sets & Leaderboards
    • Pick the right collection for every workload — lists as durable FIFO queues, sets for uniqueness and membership, and sorted sets as the leaderboard primitive that also powers rate limiting with sliding windows and geospatial lookups.
  • Streams, Consumer Groups & XREADGROUP
    • Build real-time data pipelines on Valkey streams — XADD and XREADGROUP for exactly-once delivery, consumer groups for parallel processing, and XPENDING + XCLAIM for failure recovery when workers crash mid-message.
  • Pipelines, Transactions & Lua Scripts
    • Make Valkey production-grade in Rust — batch commands with pipelining for round-trip math, write atomic multi-key updates with MULTI/EXEC + WATCH, and run server-side Lua scripts via EVAL and the script cache.
  • End-to-End Demo
    • See every pattern in action in a working Rust service. Walk through the companion repository — Docker Compose, valkey-core, valkey-streams, and valkey-cli — and connect the data shapes, streams, and transactions you've learned into one cohesive production-shaped demo.

Taught by

Noah Gift

Reviews

Start your review of Valkey From Zero

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.