Cutting Storage and Network Costs with Streaming Compression in Valkey
summary
Valkey 9.2 adds a streaming compression layer that wraps RDB snapshots and the replication command stream, using LZ4 and ZSTD (ZSTD optional) and a vendored LZ4 build. Snapshots shrink 40–80% and full syncs and replica catch‑ups run up to 77% and 73% faster because CPU wins over I/O; incremental replication traffic falls ~50–75%. Compression is opt‑in per replica, migrates without changing RDB format, and exposes compressed vs uncompressed byte metrics.
AI-written summary · about
chapters (11)
- 0:00Introduction and agenda
- 1:03What is replication in Valkey
- 3:30Problems with old RDB compression
- 5:38Streaming compression explained
- 7:44Performance gains from LZ4
- 8:48Replication compression in practice
- 10:52Opt-in compression for replicas
- 12:38LZ4 and Zstandard options
- 14:25Migration and compatibility
- 16:10Summary and call to action
- 17:35Q&A session
