<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 23:48:44 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Content with Style: PHP worker processes with Beanstalk and Daemontools]]></title>
      <guid>http://www.phpdeveloper.org/news/14283</guid>
      <link>http://www.phpdeveloper.org/news/14283</link>
      <description><![CDATA[<p>
On the Content with Style blog there's a new post looking at <a href="http://www.contentwithstyle.co.uk/content/php-worker-processes-with-beanstalk-and-daemontools">creating a worker process</a> with PHP and the help of two other tools - <a href="http://kr.github.com/beanstalkd/">Beanstalkd</a> and <a href="http://cr.yp.to/daemontools.html">Daemontools</a>.
</p>
<blockquote>
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. 
</blockquote>
<p>
The technique uses beanstalkd as a messaging queue to handle the requests based on the user's request via the interface the <a href="http://kr.github.com/beanstalkd/">beanstalkd library</a> provides. Then, to keep the queue running in the background and available, he uses daemotools to run a worker process. You can <a href="http://www.contentwithstyle.co.uk/resources/queue_test.zip">download the complete code</a> for a working example.
</p>]]></description>
      <pubDate>Thu, 01 Apr 2010 10:11:49 -0500</pubDate>
    </item>
  </channel>
</rss>
