Declaring additional RabbitMQ queues #57
-
Hi, I am trying to convert one of our services to use FastAPI and Propan.
Another thing is, that it seems like |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Well, you can create any queue at queue = await channel.declare_queue("hello", ...) If you using Propan with FastAPI you can get the same channel from router channel = router.broker._channel If you want to declare some exchange/queue without hanler you should follow this way. I will work on more obvious way, but now it works too. |
Beta Was this translation helpful? Give feedback.
-
Now I am still thinking about the best way make it reusable. But for now |
Beta Was this translation helpful? Give feedback.
-
Anyway, appreciate your notes. So, I added |
Beta Was this translation helpful? Give feedback.
Anyway, appreciate your notes. So, I added
Rabbit Broker.declare_queue
,declare_exchange
public methods andchannel
property. Also I addedafter_startup
hook to all Propan FastAPI Routers . You can get all these changes with 0.1.2.17 update. It can be helpful in your case.