I have a python client and a symfony backend. They can send and receive messages using rabbitmq.
I use rabbitmq symfony bundle on my backend.
I send an id of a php entity to the python client which get i through my api, do some work (heavy work) and store the result in a zip file. I want to send this zip file through rabbitmq. Is it possible? The file is really large (like 5mo)
If it's possible how can i do it ? (in an efficient way)
I would not recommend using a message broker to send files.
I would store the zip file somewhere s3, nfs, disk and add the URI as a resource pointer in the message.
More information about messages queues and message sizes can be found here: Maximum message size for RabbitMQ
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With