A
A
Ainur Shakirov2014-10-04 13:34:48
Node.js
Ainur Shakirov, 2014-10-04 13:34:48

Service with a timer, what is the name?

In general, there are time intervals set by users. (5min,88min,3min)
The script should execute the function for each user after the specified time.
What can be implemented on?) Where to dig?)
It seems possible on node.js .. but I don’t know how ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-10-04
Protko @Fesor

ActiveMQ: activemq.apache.org/delay-and-schedule-message-del...
RabbitMQ (not a pretty solution in my opinion, but possible): stackoverflow.com/questions/17014584/how-to-create...
Gearman : https://gist.github.com/german/1237902
Or Cron, which is primarily intended for this: https://github.com/ncb000gt/node-cron
Well, or yes, cut your bike on setTimeout + the same queues

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question