This project demonstrante how to implement job queues in Node.js using Bull, backed by Redis.
This architecture supports clustering the server safely, as Bull takes care of load-balancing and synchronization.
- Multiple queues (example: HTML Parsing, Video Transcoding)
- Adding jobs to a queue
- Repeated jobs (cron jobs)
- Monitoring UI
npm install
npm start
open http://localhost:3000/jobs
As this project uses Redis to store the jobs, you need to have Redis installed. The default Redis connection settings are used, with support for custom settings using environment variables.
PORT
(default:3000
) โ Web server portREDIS_HOST
(default:127.0.0.1
)REDIS_PORT
(default:6379
)