ubuntu - php, how to create/keep service in background, for consumer? -
im running ec2 instance, ubuntu 12.04.
i using aws infastructure, , right im trying implement consumer worker consume sqs queue (queue of msgs, not important).
to created php file, "harvest" queue 30 seconds. on top have crontab running page every 30 seconds.
what more elegant/proper solution? how make background php proccess, , how check if alive, , kill restart it, if needed?
- just clarification - asking process consumes queue, regardless of which/what mechanizem selected (sqs, rabbitmq)
thanks help
i suggest rabbitmq (github). it's complete , highly reliable enterprise messaging system based on emerging amqp standard. check php examples here.

Comments
Post a Comment