Is it possible to create subscribers (subscribe and unsubscribe) dynamically at runtime? #1296
Unanswered
radiachkik
asked this question in
Q&A
Replies: 2 comments 5 replies
-
You can still create subscriber dynamically and use |
Beta Was this translation helpful? Give feedback.
4 replies
-
@radiachkik did it work? I'm thaving the same issue. Thank you |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to get messages messages for a specific user that connected to a FastAPI websocket. Upon connecting to the websocket, I'd like to create a non-durable queue and an associated subscriber.
I already have all the required functionality completed with aio_pika, but for testing purposes I wanted to give FastStream a try.
The regular subscribers seem to work like charm, but I can't get my head around dynamically creating subscribers with FastStream.
I can imagine this concept also conflicting with the generation of the AsyncAPI documentation. Nevertheless, I tried a few things, but failed at "runtimeWarning: You are trying to register
handler
with already running broker. It has no effect until broker restarting.".Any comments on that would be highly appreciated, as I'd really love to make use of the abstractions provided by FastStream.
Beta Was this translation helpful? Give feedback.
All reactions