title: How can handle RabbitMQ consumer timeout in NestJS
body: <p>I'm using RabbitMQ as message broker between my Rest API GW and microservices.</p>
  <pre class="lang-js prettyprint-override"><code>    {
        provide: 'MY-MICROSERVICE',
        useFactory: (configService: ConfigService) =&gt; {
          const user = configService.get('RABBITMQ_USER');
          const password = configService.get('RABBITMQ_PASSWORD');
          const host = configService.get('RABBITMQ_HOST');
          const queue = configService.get('RABBITMQ_MY_QUEUE');
          return ClientProxyFactory.create({
            transport: Transport.RMQ,
            options: {
              urls: [`amqp://${user}:${password}@${host}`],
              queue,
              queueOptions: {
                durable: true,
              },
              noAck: true,
            },
          });
        },
        inject: [ConfigService],
      },
  </code></pre>
  <p>When using req/response method <code>MessagePattern</code>, I need to set a timeout If the consumer not being available for any reason.</p>
  <p>Is it possible?</p>
  <p>Currently, my REST endpoint getting Timed out, and all things getting queued, and when a consumer gets back to work it processes all of them.</p>