Closed arschles closed 8 years ago
I love this change. Not sure why I didn't think of it.
@@ master #90 diff @@
==========================================
Files 3 3
Lines 135 135
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
Hits 107 107
Misses 15 15
Partials 13 13
Powered by Codecov. Last updated by 3bf21b8...12fd016
Note: this PR is going to be closed, in favor of #94. See https://github.com/deis/logger/pull/94#issuecomment-227900376 for details
This should have been closed by #94. Closing now.
This PR was branched from #85 and replaces #85. It uses the standard NSQ client library for Go to consume messages from NSQ, instead of another library that built an abstraction on top of the standard lib. This PR removes that abstraction in order to gain a bit more control over connection & consumption details.
Additionally, this PR represents a collaboration between @krancour and I. He is writing similar code in #94, and we're converging upon a final implementation. Asynchronous pairing?
Key features of this PR
(github.com/deis/logger/consumer).Consumer
interface that abstracts the NSQ connection & consumption details, so that we can swap in other distributed async transport systems (NATS, cloud queues, Kafka, etc...) latergithub.com/nsqio/go-nsq
library's re-connection timeout. SeeLookupdPollInterval
in theConfig
structLog output when logger re-connects to nsqd:
Closes https://github.com/deis/logger/pull/85
cc/ @krancour - I've opened this PR so that we can review our respective changes.