-
Notifications
You must be signed in to change notification settings - Fork 203
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 sharing rmq Queues across multiple Connections #126
Comments
This is not correct. Of course multiple instances of different services can work together in the same queue system. Each instance should use its own connection, but all connections can use the same queues. Just look at the examples in this repository: You can start both of these programs at the same time. The producer publishes to the
Each instance has its own connection. But all of the connections can use the same queues.
This is already supported. With each instance having their own connection. |
Ah, thank you! I'm glad to know I'm wrong and the library functions as expected! |
Thank you! ❤️ |
Hi!
I'm using rmq to implement a durable queue for my application. If I understand the library correctly, it intends for the user to create all new queues every time the application starts. This means that the connection and queues created only live for one run of the application. Furthermore, it means that 2 instances of the same application can't share the same queues - they can't publish or consume on the same queues.
Firstly, I'm seeking to ensure I understand that correctly.
Secondly, assuming that's correct, I'd like to implement the ability to:
This would unlock the 2 capabilities I'm seeking:
I'm working on a fork to experiment with this. My approach currently is to add the ability control whether or not a random string is added to the connection tag.
Feedback, context, reasoning for why this isn't currently support, and alternative approaches are all welcome.
I'm happy to create a PR if/when I'm successful if that would be appreciated.
The text was updated successfully, but these errors were encountered: