Hello!
Thank you for reading this post. I'm Symfony PHP developer but I want to migrate to NodeJS/NestJS framework. I can see some nice solution for "workers" as background processes.
Can someone confirm my understending how the "Microservices" concept works in NestJS?
So let's say I have "some application". I want to publish a message to RabbitMQ via Client
ClientsModule.register([
{
name: 'MATH_SERVICE',
transport: Transport.RMQ,
options: {
urls: ['amqp://localhost:5672'],
queue: 'cats_queue',
queueOptions: {
durable: false
},
},
},
]),
My question is:
- How to publish a "message" to "exchange"?
- How to define "exchange" for RabbitMQ via "Microservices/Client" - is it possible?
- Is it possible to listen on more then 1 queue in worker? I mean to have a 1 process which listen on multiple queues?
- I think NestJS doesn't have any component/lib with real messenging implementation?