team-supercharge / nest-amqp

Nest AMQP 1.0 module - NPM package: https://www.npmjs.com/package/@team-supercharge/nest-amqp
https://supercharge.io
MIT License
26 stars 13 forks source link

reconnect implementation in amqp.service.ts #51

Open jmargieh opened 2 years ago

jmargieh commented 2 years ago

Hello,

I'm curious why you needed to implement connection reconnection when rhea-promise provides this OOTB. https://github.com/team-supercharge/nest-amqp/blob/master/src/service/amqp/amqp.service.ts#L100

Please let me know if you come across any findings.

Thanks.

raschan commented 2 years ago

hi @jmargieh Sorry for the late answer.....

I don't remember the exact reason, but it was something about the normal reconnection not really wanting to work in some weird edge cases