Tuesday 31 October 2017

Need advice: sending email reminders on a daily basis

Building something that will send a daily email reminder at a user-specified time and not sure how best to do that. The two options I was considering:Build a cron job for each individual user, and allow them to specify the reminder time down to the minuteBuild a cron job for every hour of the day that batch sends emails, only allow users to select reminder times in hourly incrementsHaving a ton of cron jobs seems like it would become a nightmare, but I've never worked with them before so maybe not?Secondarily, I was planning on using either node-crontab for building actual cron jobs via node, or later.js for similar functionality but from node. Am I correct in thinking that building actual cron jobs is more robust in that if my app crashes, as long as the server is still up the emails will still be sent?Edit: Forgot the node-specific details.

Submitted October 31, 2017 at 12:46PM by wntrmut3

No comments:

Post a Comment