NestJS is creating a new connection and a new channel for each worker or client even if they are on the same server
By my understanding this is a bad practice and you should reuse the connection and the channel
Here is one of the references: 13 Common RabbitMQ Mistakes and How to Avoid Them
Is there an existing issue for this?
Current behavior
NestJS is creating a new connection and a new channel for each worker or client even if they are on the same server By my understanding this is a bad practice and you should reuse the connection and the channel Here is one of the references: 13 Common RabbitMQ Mistakes and How to Avoid Them
Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-udy3jt
Steps to reproduce
main.ts
andapp.module.ts
npm ci
npm run start:dev
http://localhost:3000/
to trigger the clients to send messagesExpected behavior
Only 1 or 2 connections and channels should be created
Package
Other package
No response
NestJS version
8.7.7
Packages versions
Node.js version
18.16.0
In which operating systems have you tested?
Other