Show HN: Lux – Drop-in Redis replacement in Rust. 5.6x faster, ~1MB Docker image

Rusty rocket claims Redis speed crown; fans cheer, skeptics sniff

TLDR: Lux, a Rust-built drop‑in for Redis, touts 5.6x speed and a tiny image. Commenters are split: fans love the easy swap and permissive license, while skeptics question benchmark realism, missing features, and reliability — making this a classic “show me production” moment for anyone eyeing faster caches.

Move over, Redis: a Rust-powered clone called Lux just strutted into Show HN claiming up to 5.6x speed and a teeny ~1MB Docker image, and the crowd went wild — then suspicious. The creator, mattyhogan, threw down the gauntlet: “Redis is single-threaded and hasn’t changed since 2009,” promising a drop‑in switch that uses all your CPU cores and keeps your apps the same. Some devs fist‑pumped (“Very cool. Clean”), others poked: mholubowski asked, “Why isn’t this getting any love? What’s the catch?” while a Rust subreddit thread gathered “fair criticism” about real‑world workloads, durability, and whether those headline benchmarks (deep command pipelines = batching lots of requests) reflect reality.

Fans loved the MIT license flex and the “no rug‑pulls” swipe at Redis’s recent licensing changes. Skeptics warned that 80+ commands isn’t everything, and that managed clouds succeed on boring reliability, not just speed charts. Memes flew: “Redis, but make it Rust,” “Ozempic for containers,” and “shard your shards.” The vibe? Hype vs. homework. The architecture doc got shared on repeat (deep dive), but the top comment mood was classic HN: ship the benchmarks, then prove it in production.

Key Points

  • Lux is a Rust-based, multi-threaded, sharded, drop-in Redis replacement that speaks RESP and works with existing Redis clients without code changes.
  • Benchmarks using redis-benchmark show Lux scales with pipeline depth, reaching 10.5M SET ops/sec at depth 256 (5.59x Redis), while being slightly slower than Redis at depth 1 (106K vs 110K ops/sec).
  • Lux implements zero-copy RESP parsing, pipeline batching by shard, per-shard RwLocks (parking_lot), tokio async runtime, and FNV-based shard selection with hashbrown.
  • Features include 80+ Redis commands, persistence via automatic snapshots (configurable), authentication, Pub/Sub, TTL support, and a ~856KB Docker image.
  • Lux Cloud offers managed hosting at $5/month per instance with 1GB memory, advertising 4x more memory than Redis Cloud at the same price, plus persistence, monitoring, and a web console.

Hottest takes

"I built Lux because Redis is single-threaded and hasn’t changed architecturally since 2009" — mattyhogan
"Why isn’t this getting any love? What’s the catch?" — mholubowski
"Very cool. Clean." — ArchieScrivener
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.