HeadlinesBriefing favicon HeadlinesBriefing.com

Lux: Rust Redis Alternative 5.6x Faster Than Redis

Hacker News •
×

A new Rust-based database called Lux claims to be a drop-in replacement for Redis that runs 5.6x faster. The open-source project uses a multi-threaded, sharded architecture to overcome Redis's single-core limitation, achieving 10.5 million SET operations per second at pipeline depth 256. Lux maintains full Redis compatibility through the RESP protocol.

Benchmarks show Lux outperforming Redis 7, Valkey 9, and KeyDB across multiple workloads. At pipeline depth 256, Lux hit 10.5 million SET ops/sec versus Redis's 1.9 million. The performance gap widens with more cores and deeper pipelines because Lux's shard batching and multi-threading scale with concurrency while Redis hits a single-core ceiling. The entire database fits in a 856KB Docker image, compared to Redis's 30MB.

Lux Cloud offers managed hosting at $5/month per instance with 1GB memory — four times more than Redis Cloud at the same price. The MIT-licensed database includes 80+ Redis commands, supports pub/sub, TTL, and authentication. A quick start guide shows how to run Lux with Docker or compile from source using cargo. The project's architecture deep dive details its zero-copy RESP parser, pipeline batching, and auto-tuned RwLock shards.