node.js - http endpoint for a heroku worker -


i start process in worker upon payload receive through message queue power ironmq. ironmq it's possible create push queue requires http endpoint.

is possible set http endpoint heroku worker or have pull queues worker?

there few options:

1) if you're using heroku worker, you'll have poll ironmq messages. easy, in loop ruby example:

while true    msg = queue.get   if msg != nil     process_message(msg)   else      sleep 1 # sure sleep don't waste api calls , cpu!   end end 

2) use ironmq push queues hit endpoint on heroku app, instead of using heroku worker , put process_message code endpoint.

3) use ironworker.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -