4

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)

RomMer
  • 909
  • 1
  • 8
  • 19

1 Answers1

9

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

albert
  • 4,290
  • 1
  • 21
  • 42