Auto reconnect if writer failed to connect to NSQ
See original GitHub issueOnce it is disconnected from NSQ(Manually kill the NSQ server), the ‘closed’ event has been triggered in the writer. Then start NSQ server, again. But writer failed to reconnect the server. It throws following error
2015-04-20T10:35:58.359Z - error: Error: No active Writer connection to send messages
at Writer.publish (/Users/guest/myserver/node_modules/nsqjs/lib/writer.js:99:13)
It will be great if you have auto reconnect in the Writer. Is there any other method to do it?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:4
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Attempt to reconnect to NSQ after clean close - Stack Overflow
I've created an NSQ producer in my Go microservice and I'm trying to create a method for it to attempt to reconnect after...
Read more >Publishing messages in parallel causes Not Connected errors
Hey, We have a cluster of NSQ with a lot of throughput - several daemons that consume a message from the queue, process...
Read more >NSQ Docs 1.2.1 - Building Client Libraries
Client libraries should automatically handle reconnection as follows: If the consumer is configured with a specific list of nsqd instances, reconnection should ...
Read more >gnsq Documentation - Read the Docs
The Consumer will handle backing off of failed messages up to a configurable ... automatically reconnecting to dropped connections.
Read more >go-nsq - Go Packages
Message) error { if len(m.Body) == 0 { // Returning nil will automatically send a FIN command to NSQ to mark the message...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dudleycarr when resolve this issue?
I’m also facing same problems here:
@oaleynik this retry project is real nice, thanks for the tip. Only missing now is buffer the incoming messages as you just mentioned! 👍