Hello,
In my company/team, we are having troubles with the hooks, since bullmq uses onModuleInit for everything, we decided to say onModuleInit is the only hook we should use, since the bullmq starts tasks and this means, everything should be ready for bullmq start tasks, but then we have the cqrs module in another project, in which register all the event-handlers/command-handles onApplicationBootstrap, making it impossible to connect cqrs with bullmq directly. since bullmq starts doing stuff before cqrs is able to handle data. Is there a reason why this is done this way?
It should not be like all consumers are initialized on moduleInit, and then the producers (everything that listens something) should be initialize onApplicationBootstrap?
Thanks,
Jaume.