Skip to content

rongfengliang/nsq-cluster-docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nsq cluster demo

3 nsqd && 2 nsqlookupd && nsqadmin

how to running

  • 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

About

nsq-cluster-docker-compose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published