Skip to content
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

Need for failover/reconnect or expose AMQService #74

Open
radoslawlandowski opened this issue Mar 11, 2024 · 0 comments
Open

Need for failover/reconnect or expose AMQService #74

radoslawlandowski opened this issue Mar 11, 2024 · 0 comments

Comments

@radoslawlandowski
Copy link

radoslawlandowski commented Mar 11, 2024

Hello!

I'm in need of implementing the failover on the client side. In the other issue (#72 ) you mention it's not supported in rhea-as-promised. It is however supported in regular 'rhea': https://github.com/amqp/rhea/blob/main/examples/reconnect/client.js#L43

If you exposed AMQPService from the module I could listen to connectionClosed event and reconnect to another broker URI.

With current exports from the module, I can only consider to reload the NestJS module in runtime whenever connectionClose appears. It's an idea I do not specifically like :(

Any advice on how I could make the failover logic work with your module? :)

Best regards, Radek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant