Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 792 Bytes

File metadata and controls

24 lines (16 loc) · 792 Bytes

go-grpc-config-gossiping-cluster

Example of eventually consistent cluster of gRPC services with hashicorp/memberlist.

Uses Memberlist gossiping layer to replicate config data across nodes. Data is sent over the wire as gobs.

See

SWIM membership protocol

Run

# generate code if needed
make grpc

# watch your TCP/UDP connections
watch 'netstat -an | grep "790\|900"'

# run a gossiping cluster of gRPC services
make run-cluster

# send a put config request to any node; new config should be gossiped infection-style to the other nodes
make run-client