Rabbitmq with Fastapi

191 views
Skip to first unread message

kartik sharma

unread,
Jul 8, 2022, 2:02:45 PM7/8/22
to rabbitmq-users
Hi, 
I'm having one publisher FastAPI docker container and 2-3 consumer containers setup consuming explicit queues (2-3).

is it ok to create pika connection once in fastapi service and use it on all incoming requests 
NOTE: I'm using pika hence I have to use fastapi `def router_name` i.e fastapi will c create threads on each incoming api request,
any help will be appreciated

Thanks

Yong Walt

unread,
Jul 9, 2022, 8:40:13 PM7/9/22
to rabbitm...@googlegroups.com
Yes You can.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/26653dd9-d049-4e56-9150-21dfe99f9652n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages