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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -