golevelup / nestjs

A collection of badass modules and utilities to help you level up your NestJS applications 🚀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[RabbitMQ] create queues without consumer

fermentfan opened this issue · comments

Hi,
I am currently trying to send out messages with a delay by leveraging the TTL + DLQ pattern as described here:

#138 (comment)

At the moment I solely rely on queue creation by this dependency, which I really love! But to follow the pattern one must create a queue without any handler added to it where the messages just wait until their TTL hit. Sadly I think this is not possible? I'd have expected that one could define queues with options like DLQ next to the exchanges in the module definition. It would be so cool if that was possible :)

It would honestly be pretty easy to get this functionality implemented but I'll be honest I haven't used RabbitMQ in so many years now that I have no motivation. I bet you it could be a really easy contribution for you though and you'll get your face here: https://github.com/golevelup/nestjs#contributors-