Reputation: 343
I am creating an application that stores events and sends reminder emails to people who signed up 1 hour before the event(the time of each event is stored in the database). At first I was thinking about using CronJobs to schedule these emails, but now I am not sure if that will work. Is there any other node module that will allow me to implement the reminder email functionality.
Upvotes: 1
Views: 2292
Reputation: 6559
You can give a try node-schedule. It is using cron-job underneath.
In a quality interval, you can check if there is an upcoming interval, and send the reminder to the appropriate persons.
Upvotes: 0
Reputation: 6452
If you have Redis available to backend it, you might look at something like bull. From the readme:
Upvotes: 1