martmull
2024-11-20 10:06:05 +01:00
committed by GitHub
parent 271af37327
commit a744515303
3 changed files with 235 additions and 99 deletions

View File

@@ -8,8 +8,8 @@ Queues facilitate async operations to be performed. They can be used for perform
Each use case will have its own queue class extended from `MessageQueueServiceBase`.
Currently, queue supports two drivers which can be configured by env variable `MESSAGE_QUEUE_TYPE`.
1. `pg-boss`: this is the default driver, which uses [pg-boss](https://github.com/timgit/pg-boss) under the hood.
2. `bull-mq`: this uses [bull-mq](https://bullmq.io/) under the hood.
1. `bull-mq`: this is the default driver, which uses [bull-mq](https://bullmq.io/) under the hood.
2. `pg-boss`: this uses [pg-boss](https://github.com/timgit/pg-boss) under the hood.
## Steps to create and use a new queue
@@ -43,4 +43,4 @@ class CustomWorker {
}
```
<ArticleEditContent></ArticleEditContent>
<ArticleEditContent></ArticleEditContent>