How to listen multiple queue in single microservice?

128 views Asked by At
const app = await NestFactory.createMicroservice<MicroserviceOptions>(
    AppModule,
    {
      transport: Transport.RMQ,
      options: {
        urls: [
          `amqp ://${process.env.RABITMQ_USERNAME}:${process.env.RABITMQ_PASSWORD}@${process.env.RABITMQ_HOST}:${process.env.RABITMQ_PORT}`,
        ],
        queue: 'master_ms_locale',
        noAck: false,
        queueOptions: {
          durable: false,
        },
      },
    },
  );
  
  await app.listen();

In above I need another queue that will listen master_ms_country as well

0

There are 0 answers