Clean example of Producer and Customer in golang

2,900 views
Skip to first unread message

Sergey Ivanov

unread,
Jul 2, 2014, 6:45:28 AM7/2/14
to nsq-...@googlegroups.com
hello!

I guess I read all documentation at http://nsq.io/ but still can not find clean example of using Go-Nsq client (https://github.com/bitly/go-nsq) :(

could you please provide an idiomatic example, assuming we have nsqlookup and nsqd running local with default settings?

thank you

Sergey Ivanov

unread,
Jul 2, 2014, 8:38:39 AM7/2/14
to nsq-...@googlegroups.com
Well, to the moment topic was published I guess I find most documentation in *_test.go files and nsq source code :)

https://github.com/bitly/go-nsq/blob/23d799909149ced627bb259d61625edc36bd8a20/producer_test.go

Matt Reiferson

unread,
Jul 2, 2014, 9:56:59 AM7/2/14
to Sergey Ivanov, nsq-...@googlegroups.com
Hi Sergey,

In the https://github.com/bitly/nsq/tree/master/apps directory of the main NSQ repo there are quite a few utility apps built on go-nsq that highlight a variety of use cases, see nsq_to_http, nsq_to_nsq, nsq_tail, and nsq_to_file.

Regards,

Matt

Gani Mendoza

unread,
Dec 1, 2015, 8:16:44 PM12/1/15
to nsq-users, junga...@gmail.com
Hello NSQ community,

This is the start of my journey towards a general understanding of NSQ especially for newbies. I understand that microservices all boil down to message queue-based programming.

As a result, I am writing a book to provide a definitive guide to NSQ (please see https://itjumpstart.wordpress.com/2015/12/01/im-writing-a-book-about-nsq for the rationale behind it)

I have provided some NSQ examples at https://github.com/ibmendoza/go-examples/tree/master/nsq.

This is my small token of gratitude for this wonderful thing called NSQ.

As Mitchell Harper had said,

"Marketing is equally as important as product".


Regards,
Gani

Matt Reiferson

unread,
Dec 7, 2015, 12:04:56 PM12/7/15
to Gani Mendoza, nsq-users, Sergey Ivanov
Gani,

This is great to hear, thanks for letting us know!
Reply all
Reply to author
Forward
0 new messages