nats-streaming-server HA playground

cluster

just run:

(cd cluster && docker-compose up)

fault tolerant

just run:

(cd ft && docker-compose up)

consumer/producer

Producer:

go run producer/main.go CLIENT_ID nats://localhost:4221 nats://localhost:4222 nats://localhost:4223

Consumer

go run consumer/main.go CLIENT_ID nats://localhost:4221 nats://localhost:4222 nats://localhost:4223