$ npm install
# development
$ npm run start:all
Requirements:
- Docker
- docker-compose
$ npm run test:docker:up
- First Terminal:
npm run test:docker:up
- First Terminal: Kill RabbitMQ node 3:
npm run test:testcase1
- Second Terminal:
npm run test:curl
=> First Terminal: EAI_AGAIN error => no connection
- First Terminal:
npm run test:docker:up
- First Terminal:
npm run test:prepare
- Second Terminal:
npm run test:curl
=> pong is shown - Second Terminal: After everything is connected, kill RabbitMQ node 3:
npm run test:testcase2
, - Second Terminal:
npm run test:curl
=> First Terminal: EAI_AGAIN error => no reconnect
AmqpConnectionManager from producer reconnects to the next Broker and Nestjs should send to the new connected broker at startup.
AmqpConnectionManager from producer reconnects to the next Broker and Nestjs should send to the new connected broker.