
MessageQueueServiceBase.
În prezent, acceptăm doar bull-mqbull-mq ca driver de coadă.
Pași pentru a crea și utiliza o coadă nouă
- Adăugați un nume pentru noua coadă sub enum
MESSAGE_QUEUES. - Provide the factory implementation of the queue with the queue name as the dependency token.
- Inject the queue that you created in the required module/service with the queue name as the dependency token.
- Adăugați o clasă lucrător cu injectare bazată pe simbol, la fel ca producătorul.