javascript - Call the function 24 hours after the first call in node.js -
how can call function 24 hours after first call in node.js?
or 24 hours after execution of specific request node.js server?
and execute same parameters
(function must sent email user)
i think bigger question might dependent on type of architecture have. simple answer investigate sort of scheduler, or cron task, better solution might distribute these systems , setup sort of messaging system live rabbit mq.
when first function runs, can send message via rabbit system handles emails , run later, thereby reducing load on original system, or protecting if goes down.
Comments
Post a Comment