Multi-processor, multiplayer in rabbit mab with single queue

I am very new to RabbitMQ and I need to write a program that has a Multi Producer and a multi consumer with one queue. Is it possible to do what I showed in the image? I found many examples, but they are all with the same producer. Any producer sends messages to any user.

enter image description here

+3


source to share


1 answer


In short, you can absolutely have the answer with many producers who publish in the same queue. I would recommend that you create an exchange and your producers will send things in an exchange that will then go to the queue. In your simple diagram, the exchange is not strictly necessary, but it does make your solution more scalable in the future.



+3


source







All Articles