Introduction to Valkey-Swift
summary
A Swift client for Valky (a Redis 7.2.4 fork) that targets full Swift concurrency with sendable types, task cancellation, and structured lifetimes; connection pooling runs a background task and offers a withConnection lease API plus pipelining that encodes commands into one round trip. A JSON-driven code generator produces bindings for over 400 commands and keeps up with protocol changes. Benchmarks show extreme pipelining: 120,000 commands round trips on one connection with 1,000 concurrent tasks. Includes pub/sub async sequences, streams for persisted chat history, and cluster node discovery with redirect handling.
AI-written summary · about
chapters (9)
- 0:00Introduction to Valky-Swift
- 1:37Why Valky-Swift exists
- 4:26Client and connection setup
- 8:03Command support and codegen
- 10:14Pipelining for performance
- 14:43PubSub messaging model
- 16:48Valky cluster support
- 21:51Live chat server demo
- 30:35Compatibility with Redis








