Replies: 2 comments 7 replies
-
Hello, thanks for using RabbitMQ. If you would like assistance, at the bare minimum, you must provide a git repository with code I can clone and run. Right now you are asking for free assistance using a couple code snippets. We do not have the time to assist with that. If you've "tried all kinds of things and nothing worked" then at least share something you have tried. |
Beta Was this translation helpful? Give feedback.
-
Concurrent publishing on a shared channel is explicitly prohibited by all RabbitMQ clients our team maintains. Which means you must use separate channels or synchronize the publishing and publisher confirm operations. |
Beta Was this translation helpful? Give feedback.
-
I would appreciate help on parallelism with RabbitMQ. Given a large json file, let's say it has 1 million items, I want to go through it in parallel so that each item is passed to Rabbit using multithreading. I read quite a few blogs and it seems that there is a problem with using one connection with one channel with multithreading and if I understood correctly it was recommended to add channels, in practice I didn't really understand how this was implemented in the code, I tried all kinds of things and nothing worked. I would like to know if my desire is possible, or if I have to parse the file iteratively one after the other, and if it is possible if I can get help with the code?
Here i define the Connection and the publish to rabbit function :
Here i try to divide the task into multi threading without success:
Beta Was this translation helpful? Give feedback.
All reactions