2018-12-06 21:26:51 +03:00
|
|
|
# Gossip Registry
|
|
|
|
|
2019-01-30 15:39:57 +03:00
|
|
|
Gossip is a zero dependency registry which uses github.com/hashicorp/memberlist to broadcast registry information
|
2018-12-06 21:26:51 +03:00
|
|
|
via the SWIM protocol.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Start with the registry flag or env var
|
|
|
|
|
|
|
|
```bash
|
|
|
|
MICRO_REGISTRY=gossip go run service.go
|
|
|
|
```
|
|
|
|
|
|
|
|
On startup you'll see something like
|
|
|
|
|
|
|
|
```bash
|
|
|
|
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
|
|
|
|
|
|
|
|
```bash
|
2019-01-30 15:39:57 +03:00
|
|
|
MICRO_REGISTRY_ADDRESS=192.168.1.65:56390
|
2018-12-06 21:26:51 +03:00
|
|
|
```
|