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

Add support for failover connections #72

Open
amangeot opened this issue Feb 13, 2024 · 1 comment
Open

Add support for failover connections #72

amangeot opened this issue Feb 13, 2024 · 1 comment

Comments

@amangeot
Copy link

Hello,
I'm using your library (thank you) to connect to Amazon MQ (ActiveMQ) which has a failover protocol with multiple endpoints. It currently runs in Standby mode which means there is one instance running at a time, and when needed a standby instance pops up. It happens when AWS upgrades MQ versions for example.

Do you think it would be interesting to handle this failover mechanism?

What's usually implemented is to pass multiple urls in options, try one, and if it's down, try another one. rhea doesn't seem to handle failover protocol.

@raschan
Copy link
Collaborator

raschan commented Feb 14, 2024

Hi @amangeot,

Failover is not supported at the moment, mostly because rhea itself does not support it.

We had the exact same setup in one of our projects, with that our solution was to have both the Active and Standby brokers be present in the same target group, have a load balancer pointed to said target group, and have a nice CNAME pointing to the LB, and this CNAME is what we use in the application it self.

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

2 participants