High-performance distributed in-memory LRU caching node with consistent hashing ring and gossip failure detection.
An in-memory, partition-tolerant distributed cache node designed for low-latency key-value storage. Implements consistent hashing with virtual nodes to minimize re-sharding overhead and utilizes a decentralized gossip membership protocol for automatic node discovery.
Client Request -> Hash Ring Lookup -> Shard Leader (gRPC) -> In-Memory LRU
|
Gossip Heartbeat Protocol (UDP)
|
Peer Replicas (Sync)# Build binary
go build -o bin/cache-node src/main.go
# Start primary node
./bin/cache-node --port=8080 --peers="10.0.0.2:8080,10.0.0.3:8080"