News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Content with Style:
PHP worker processes with Beanstalk and Daemontools
April 01, 2010 @ 10:11:49

On the Content with Style blog there's a new post looking at creating a worker process with PHP and the help of two other tools - Beanstalkd and Daemontools.

Sometimes things just get too heavy for a straight forward approach. Memory usage might be too high or interaction might be delayed. In this case it might make sense to queue the task up for later execution.

The technique uses beanstalkd as a messaging queue to handle the requests based on the user's request via the interface the beanstalkd library provides. Then, to keep the queue running in the background and available, he uses daemotools to run a worker process. You can download the complete code for a working example.

0 comments voice your opinion now!
worker daemon process beanstalkd daemontools


blog comments powered by Disqus

Similar Posts

Felix Geisendörfer's Blog: Learning from the CakePHP source code - Part 2

Matthias Noback: Experiences with PHP Open Source Software in a Symfony-Friendly Environment

Felix Geisendörfer's Blog: Learning from the CakePHP source code - Part 2

HHVM Blog: The Journey of a Thousand Bytecodes

Gonzalo Ayuso's Blog: Watermarks in our images with PHP and Gearman


Community Events

Don't see your event here?
Let us know!


api interview opinion extension introduction laravel5 wordpress list framework podcast language community unittest laravel version php7 series library voicesoftheelephpant release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework