-
Notifications
You must be signed in to change notification settings - Fork 86
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
Use multiple RabbitMQ instances #68
Comments
Hi, There is no function 'connection', but you can use the third parameter in publish or consume. \Amqp::consume('some-queue', function ($message, $resolver) { }, config('amqp')['properties']['YOUR_CONNECTION']) |
Right now this library support to define multiple connections but you can only use one. (use in config) @bzrncev interesting workarround :) |
@bzrncev We are trying to use this approach for This doesn't work
This publishes to the default Queue in settings as well as the inserted This kinda work's
This causes knock-on effects with other services having to then be restarted in a particular way, any ideas why this occurs as we just want to use one connection, have a default Queue, but be able to independently publish to a separate Queue without populating to the default Queue within the settings file. |
Hi, multiple instances can be placed in dfferent hosts, so need to be separated in https://github.com/bschmitt/laravel-amqp/blob/master/src/Request.php#L33 For first publish make connect , and rewrite host/port does not applied for next calls like a sollution i sugget make hash from connection params and store/get connection from connections array by it |
Hi,
First of all, thanks for this amazing library. Second, I would like to know how to configure 2 separate instances?
I kinda know how to do it in the config file but not while using it, you know like when you need to use multiple db instances.
Thanks,
The text was updated successfully, but these errors were encountered: