https://github.com/taskforcesh/bullmq-video-transcoder
Example for how to use flows with BullMQ to divide lengthy jobs in smaller chunks
https://github.com/taskforcesh/bullmq-video-transcoder
Last synced: 6 months ago
JSON representation
Example for how to use flows with BullMQ to divide lengthy jobs in smaller chunks
- Host: GitHub
- URL: https://github.com/taskforcesh/bullmq-video-transcoder
- Owner: taskforcesh
- License: mit
- Created: 2022-06-15T11:29:45.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-15T11:54:53.000Z (over 3 years ago)
- Last Synced: 2025-04-07T18:06:29.310Z (9 months ago)
- Language: TypeScript
- Size: 46.7 MB
- Stars: 38
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# BullMQ Video Transcoding
This repo includes example source code for how to split a lengthy job into smaller chunks that can be processed in parallel, specifically for video transcoding, but the the same concept can be used for any other lengthy operation.
In order to test it, just build the source code with ```yarn build```. You can then add an example video to the "splitter" queue with ```node dist/producer.js``` and then
run the workers in order to process the video ```yarn start```. The results and temporary files will be placed in the output directory.
Please check this blog post for more information: https://blog.taskforce.sh/splitting-heavy-jobs-using-bullmq-flows/