3 nsqd && 2 nsqlookupd && nsqadmin
- start nsq cluster
docker-compose up -d
- view admin
open http://localhost:4171
- add host info
/etc/hosts
127.0.0.1 ysdp-nsq-nsqd1
127.0.0.1 ysdp-nsq-nsqd2
127.0.0.1 ysdp-nsq-nsqd3
- run test
start consumer
cd api
yarn
yarn app
publish some message
curl -d "it really tied the room together" http://localhost:4151/pub?topic=sample_topic