In this video we talk about background tasks in Node.js with Redis, using a library called Bull for prioritizing processes, monitoring events, number of simultaneous processes, in addition to working in separate threads in the application.
Technology | Prerequisites | Getting started | How to contribute | License
- Express — A web framework for Node.js
- Bull — Premium Queue package for handling distributed jobs
- Clone this repo
- Enter the folder
background-jobs-class-by-dio
- Run
yarn
ornpm install
to install the dependencies - Copy the
.env.example
file and create an.env
file with email and Redis credentials - Run
yarn dev
andyarn queue
to start the full featured local server
- Make a fork;
- Create a branck with your feature:
git checkout -b my-feature
; - Commit changes:
git commit -m 'feat: My new feature'
; - Make a push to your branch:
git push origin my-feature
.
After merging your receipt request to done, you can delete a branch from yours.
This project is under the MIT license. See the LICENSE for more information.
Made with by Roberto Sousa 👋 Get in touch!