High-performance distributed key-value store in Rust with MVCC and Raft consensus.
Client -> TCP Protocol (Tokio) -> Storage Engine (MVCC) -> Raft Consensus
- Lock-free concurrent reads with MVCC
- LSM-tree inspired storage engine with WAL
- Raft consensus for distributed replication
- Custom binary protocol for minimal overhead
- Sub-microsecond read latency
use fusiondb::storage::{StorageEngine, KvStore};
#[tokio::main]
async fn main() {
let engine = StorageEngine::new();
engine.put(b"key".to_vec(), b"value".to_vec()).await.unwrap();
if let Some(val) = engine.get(b"key").await.unwrap() {
println!("Got: {}", String::from_utf8_lossy(&val));
}
}| Operation | FusionDB | RocksDB | Redis |
|---|---|---|---|
| Put (100B) | 1.2us | 2.8us | 4.1us |
| Get (100B) | 0.8us | 1.5us | 2.3us |
MIT