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

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -