http://nsq.io/deployment/installing.html
$ brew install nsq
In one shell, start nsqlookupd:
$ nsqlookupd
In another shell, start nsqd:
$ nsqd --lookupd-tcp-address=127.0.0.1:4160
$ curl -d "hello world 1" "http://127.0.0.1:4151/put?topic=test"
We have two daemons running. What are they doing?
$ nsqadmin --lookupd-http-address=127.0.0.1:4161
Now you can load the NSQ Admin UI in a borwser: http://127.0.0.1:4171/
First get the client library for import:
$ go get -u -v github.com/bitly/go-nsq
$ nsq_tail --topic=test --lookupd-http-address=127.0.0.1:4161