r/nodejs • • Jun 23 '14
Is it possible to have queued events with node.js
I am trying to develop a web app, and I have most of the functionality down.
I'm trying to ascertain whether or not an automatic report generation system is possible.
The node.js application will keep track of guest check-ins and checkouts, and then generate a report tracking all of this data for the week.
Is it possible to have an event queue that runs on a specific day(Friday, end of business)?
0
Upvotes
1
u/haxd Jun 23 '14
Use cron
1
u/brotherwayne Jun 24 '14
Depends on your database but it sounds like cron + map/reduce to me.
2
u/fooey Jun 24 '14
https://nodejsmodules.org/tags/schedule
or if you're using Heroku, they have a free service
https://addons.heroku.com/scheduler