micro/registry/gossip
2019-07-04 11:36:49 +01:00
..
proto registry: gossip unify registry option passing, optimize 2019-02-02 01:12:39 +03:00
gossip_test.go rework gossip registry 2019-02-13 14:39:20 +00:00
gossip.go Update registry util semantics 2019-07-04 11:36:49 +01:00
options.go rework gossip registry 2019-02-13 14:39:20 +00:00
README.md registry: gossip unify registry option passing, optimize 2019-02-02 01:12:39 +03:00
watcher.go fix race with rcache 2019-05-09 23:02:32 +03:00

Gossip Registry

Gossip is a zero dependency registry which uses github.com/hashicorp/memberlist to broadcast registry information via the SWIM protocol.

Usage

Start with the registry flag or env var

MICRO_REGISTRY=gossip go run service.go

On startup you'll see something like

2018/12/06 18:17:48 Registry Listening on 192.168.1.65:56390

To join this gossip ring set the registry address using flag or env var

MICRO_REGISTRY_ADDRESS=192.168.1.65:56390