You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use broadway_rabbitmq, because I think that it's a great package but I would also be able to create my queue directly from my application and also being able to setup few things before consuming it.
Why is not possible to implement a client by using BroadwayRabbitMQ.RabbitmqClient behaviour and call it in the broadway.start_link/2
The :client option for the BroadwayRabbitMQ.Producer is private and it only exists so we can replace the client by a fake one during tests. This happens because unlike BroadwaySQS.Producer, which is client agnostic, the BroadwayRabbitMQ.Producer was designed to work with amqp and it can only handle messages from that client.
I would also be able to create my queue directly from my application and also being able to setup few things before consuming it.
If you need to initialize queues or anything else that is not supported by the configuration, we recommend the approach suggested here.
Is that solution feasible for your case? If not, I'm afraid the only other way would be to create a custom producer.
Hello guys,
I would like to use broadway_rabbitmq, because I think that it's a great package but I would also be able to create my queue directly from my application and also being able to setup few things before consuming it.
Why is not possible to implement a
client
by usingBroadwayRabbitMQ.RabbitmqClient
behaviour and call it in thebroadway.start_link/2
By reading the code, I had the impression that it was possible because of this line: https://github.com/plataformatec/broadway_rabbitmq/blob/1ba40e62f079ad2277d7ef6b253872f31065fb78/lib/broadway_rabbitmq/producer.ex#L118
Can you tell me if it is something you will give the ability to the users to do?
The text was updated successfully, but these errors were encountered: