يعطيك العافية، شرحك ممتاز وواضح. I wish you would do more in detail examples about RabbitMQ with NestJs. Explaining some microservice principles and such.
Honestly, I didn't give it much thought while filming the video, but I did deploy them under one repo on github : github.com/charbelh3/NestJs-Microservice-RabbitMQ Hope you find the video beneficial :)
I'm not sure it is supported in NestJs out of the box .. But you can always use "amqplib", which is a rabbitmq library and client (that nest uses behind the scenes) Package: www.npmjs.com/package/amqplib You can create your own exchanges of any type, including fanout (e.g : channel.assertExchange("exchange-name", "fanout", {...options}) (amqp-node.github.io/amqplib/channel_api.html#channel_assertExchange) I have a video where we create our own rabbitMQ client that uses amqplib in Node (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-igaVS0S1hA4.htmlsi=SlVhAcNKF3sQIIz8). This video will support you in creating your own rabbitmq implementation using that package. You just have to replace the exchange type with "fanout" and make any necessary changes! I wish you good luck !
Yes, as long as you're connecting your microservice project (the consumer) to the same rabbitMQ server, and listen on the queue, you will receive the messages successfully