1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00
go-micro/registry/gossip
2019-01-10 10:57:04 +00:00
..
proto downgrade code generated stuff 2019-01-10 10:57:04 +00:00
gossip.go run gossip updater first 2018-12-19 19:04:44 +00:00
options.go implement some gossip options 2018-12-19 12:25:16 +03:00
README.md Add gossip readme 2018-12-06 18:26:51 +00:00
util_test.go gossip registry 2018-12-04 16:41:40 +00:00
util.go Update selector race, rename cache selector 2018-12-29 15:44:51 +00:00
watcher.go update the gossiper 2018-12-06 18:19:05 +00:00

Gossip Registry

Gossip is a zero dependency registry which uses 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