This is simple and scalable Scheduler and Worker implementation using NodeJs and RabbitMq.
Worker is highly scalable and can consume up to 10k Events/instance, with scope to scale horizontally.
You will have to adjust prefetch count for worker as per need.
- Setup RabbitMq as per your system.
- Git clone this project
git clone https://github.com/sgmarghade/node-scheduler-wroker.git
npm install
- To run scheduler
node Scheduler.js
- To run worker
node Worker.js