Skip to content

hayawata3626/nest-queue-sample

Repository files navigation

nest-queue-sample

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Start redis and bull-board

docker-compose up

Confirm Queue

curl -X GET http://localhost:3000/audio/transcode

You can then check the following logs.

[Nest] 50444  - 02/07/2023, 8:11:53 AM   DEBUG [AudioProcessor] Start transcoding...
[Nest] 50444  - 02/07/2023, 8:11:53 AM   DEBUG [AudioProcessor] Object:
{
  "file": "audio.mp3"
}

[Nest] 50444  - 02/07/2023, 8:11:53 AM   DEBUG [AudioProcessor] Transcoding completed

Visualize queues and jobs

スクリーンショット 2023-02-07 8 38 05

Reference

About

Sample of queue using nestjs, bull and docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published