nestjs icon indicating copy to clipboard operation
nestjs copied to clipboard

Feature Request: Support for connecting to RabbitMQ using an object instead of a URL

Open pmarfany opened this issue 1 year ago • 1 comments

Hello team 😄,

First off, thank you for this amazing package! It's been incredibly helpful in integrating RabbitMQ with NestJS applications, and I truly appreciate the effort and thought put into its development.

I would like to request a feature to allow connecting to RabbitMQ using an object instead of a URL. Currently, the package only supports connections via a URL string. However, in certain cases, it's more convenient to define those connection parameters (specially options such as heartbeat, etc.) as an object.

The underlying library, amqplib, already supports this functionality. This would simplify and enhance the flexibility of connection configurations and allow users to leverage all the options amqplib provides.

Thank you for considering this request!

pmarfany avatar Jan 13 '25 11:01 pmarfany

@pmarfany I wouldn't mind supporting an object but since we rely in a couple places on the URL (even for logging) we would have to parse the object to construct the URI. If you would like to contribute with the functionality, I would appreciate a lot :pray:

underfisk avatar Jan 14 '25 14:01 underfisk