-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.js process dies if RabbitMQ node dies. #93
Comments
By adding a
This probably should be emitted as an error on bus, itself. I'll spin up a quick PR, reference you, and you can see if it fits what you'd like. |
Thanks. :) I'm wondering if it's worth putting a reconnect option with retries. Especially if using HAProxy load balancing. |
Btw, this doesn't fire... This does... |
I'm debugging the uncaughtException issue now. Looks like it's coming from amqplib. Just raised the following issue there: amqp-node/amqplib#334 For now, the best thing to do is listen for connection.close. I'll update here as soon as I hear back. In general, I promote crashing your application and restarting when an error occurs (https://www.joyent.com/node-js/production/design/errors). If you'd like to write a module that wraps servicebus and provides retry-connection with incremental backoff, I'd be happy to link to it. |
Ok. I'll track it here. |
Btw is there a way to contact you so we can discuss the docs a bit see if I can document some of it for you? :) |
Yup. Shoot me a dm on nycnode.com/slack |
Circling back here with a better way to communicate about helping out! https://gitter.im/servicebus-node/Lobby Cheers! |
Hi,
I have the following.
The moment the Rabbit node where servicebus is connected to dies (dokcer kill that 1 node), the Node.js process dies also with no exception caught.
We only see: Process finished with exit code 0
The text was updated successfully, but these errors were encountered: