Overview
kvault is a distributed key-value store built on the Raft consensus protocol. It provides sub-millisecond reads, horizontal scaling, and automatic shard rebalancing without manual intervention.
Quick Start
package main
import "github.com/example/kvault"
func main() {
client := kvault.Connect("localhost:8080")
client.Set("key", "value")
val, _ := client.Get("key")
}
Features
- Raft consensus for strong consistency
- Sub-millisecond read latency
- Automatic shard rebalancing
- Multi-datacenter replication
- ACID transactions
- gRPC and HTTP APIs
Performance
Benchmarked on 5-node cluster with 3 replicas:
- Reads: 50,000 ops/sec per node
- Writes: 15,000 ops/sec cluster-wide
- p99 read latency: 0.8ms
- p99 write latency: 3.2ms