--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RabbitMQ client libraries need a function to call for each delivery. From there you can use anyconcurrent dispatch mechanism you want as long as you avoid* Sharing channels between threads for publishing* Double acknowledgements* Acking on a channel different from that the delivery was onAs far as the protocol goes, most other scenarios are entirely an implementation detail.
On Mon, Aug 14, 2017 at 11:14 AM, Patrik Iselind <patri...@gmail.com> wrote:
Hi,
I'm following http://aio-pika.readthedocs.io/en/latest/rabbitmq-tutorial to see if aio-pika will fit in an upcoming project.
One thing that strikes me is that the on_message function isn't a coroutine. I couldn't find any documentation on how to handle this.
My use case is something along these lines.
My app will get work from a RabbitMQ queue. The work involved is mostly IO bound but could take quite a while (up to say an hour or so) to complete, hence i want to use aiohttp and Motor (https://motor.readthedocs.io/en/stable/) with friends in the on_message function as well.
Most examples i find of using asyncio know the work to be performed in advance. I've yet to discover the examples where you don't know the work in advance.
Do you have any suggestions?
Regards,
Patrik
--
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 post to this group, send email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--MKStaff Software Engineer, Pivotal/RabbitMQ
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.