-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Consuming multiple queues with one channel #48
Comments
This appears to be the cause: https://github.com/eandersson/amqpstorm/blob/master/amqpstorm/basic.py#L132 Is this intended or is it something that could be updated? |
This was indeed an intentional design decision. I can revisit it. |
How about something like this as an alternative?
|
@eandersson Thanks for the quick response! Yep, there are other options to accomplish handling the keys and passing messages to the proper callbacks. I was more surprised since all the other libraries I tested allowed for multiple consuming callbacks. I think it would be a nice addition and would provide a clean way to handle messages intended for different callbacks. But given this was a design decision then this really isn't a bug. So I will close the issue for now. |
Thanks for the feedback @smarlowucf. I'll have this implemented in the next release. |
Awesome, thanks @eandersson ! |
This should be fixed with 2.4.0. Will let it bake a few days before I push it out. Thanks for the report @smarlowucf . |
I am porting code from pika to amqpstorm for thread safety. In the existing code there is a channel that is consuming multiple queues. With amqpstorm all messages go to the last consumed callback:
producer.py
consumer.py
Yields:
But should be:
Am I doing something wrong here? It seems like one channel should be able to consume multiple queues into the correct callbacks?
The text was updated successfully, but these errors were encountered: