Customizing Valkey with Rust: Building High-Performance Modules
summary
Shows how a forked Valkey modules Rust SDK adds concrete helpers (client ID/name, config get), event handlers, preload hook and a system_alloc feature for unit tests; demonstrates a built module called valq custom data type that implements message IDs, visibility timeouts, delayed queue and DLQ, auxiliary RDB save/load for persistence, and replicates commands (not raw data). Push/pop performance matches native lists in demos, memory usage is higher, and mock-context testing support is planned.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 1:04Why build modules in Rust
- 3:30Rust SDK deep dive
- 14:21Custom configurations
- 20:37Unit testing modules
- 25:40Building a job queue
- 35:49Demo of ValQ module
- 40:29Q&A and summary
related talks
33mDiscover Valkey: The Path to Now
27mAn Introduction to Messaging in Valkey
36mWhat’s New in Valkey
41mValkey 8 — Release of a Redis Fork Focused on Performance
48mValkey clusters unboxed
44mValkey: Latency in Cloud Environments
10mThe unreasonable effectiveness of key value databases
48mStrengthening the Base: Laying the Groundwork for a more robust Rust SDK
