r/databasedevelopment • u/Low_Peace1069 • 2h ago
FyroDB: a Redis-compatible server in Rust (RESP2/RESP3, thread-per-core, Postgres query-cache mode). Feedback welcome
I've been building FyroDB, an open-source in-memory database written in Rust that speaks the Redis protocol (RESP2/RESP3), so redis-cli and clients like redis-py, ioredis, go-redis and redis-rs work without code changes.
How it differs from Redis: it runs thread-per-core with sharded lock-free hash tables instead of a single-threaded command loop. It also has native JSON documents (JSON.*), HNSW vector search, RDB and AOF persistence, and a cluster mode with 16,384 hash slots.
It can also sit in front of PostgreSQL as a cache proxy: it speaks the Postgres wire protocol, caches SELECT results and invalidates by table on INSERT, UPDATE and DELETE.
Numbers, so you can judge for yourself: on a 6-core i5-11400H over loopback with redis-benchmark and 16 clients, I get about 204k SET and 195k GET requests per second, with p99 under 0.3 ms. That is one machine and no side-by-side with Redis, so treat it as a starting point. The method is in the docs: https://fyrodb.vercel.app/docs/benchmarks
Try it:
docker run -d -p 6379:8000 -v fyrodb-data:/data rana718/fyrodb:latest
redis-cli -p 6379 PING
Repo: https://github.com/Rana718/FyroDB
I'd like to hear from people who run Redis: which commands or behaviors would you need before trying a drop-in replacement?