<?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 08:30:54 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PHPMaster.com: Zend Job Queue]]></title>
      <guid>http://www.phpdeveloper.org/news/17388</guid>
      <link>http://www.phpdeveloper.org/news/17388</link>
      <description><![CDATA[<p>
In <a href="http://phpmaster.com/zend-queue/">this most recent post</a> to PHPMaster.com <i>Alex Stetsenko</i> takes a look at the Zend Job Queue functionality, a part of the <a href="http://www.zend.com/products/server/">Zend Server</a> installation. He talks about some basic usage to make HTTP requests and a more extended example showing report generation.
</p>
<blockquote>
Web applications usually follow a synchronous communication model. However, non-interactive and long-running tasks (such as report generation) are better suited for asynchronous execution. One way to off-load tasks to run at a later time, or even on a different server, is use the Job Queue module available as a part of Zend Server 5 (though not as part of the Community Edition). Job Queue allows job scheduling based on time, priority, and even dependencies
</blockquote>
<p>
In his two examples, he shows the code involved to create a new Queue object and define a HttpJob in it. The first just calls a "sample.php" script that's exposed as a part of your external-facing site and shows how you can get the current status of the job. The more advanced example shows a call to a "report.php" script with a set of options defining things like "type", "length" and "priority". He also points out some other options that can do similar things like <a href="http://gearman.org/">Gearman</a>, <a href="http://nodejs.org/">NodeJs</a> and <a href="http://www.rabbitmq.com/">RabbitMQ</a>.
</p>]]></description>
      <pubDate>Fri, 13 Jan 2012 08:37:31 -0600</pubDate>
    </item>
  </channel>
</rss>
