News Feed
Sections




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

PHPMaster.com:
Zend Job Queue
January 13, 2012 @ 08:37:31

In this most recent post to PHPMaster.com Alex Stetsenko takes a look at the Zend Job Queue functionality, a part of the Zend Server installation. He talks about some basic usage to make HTTP requests and a more extended example showing report generation.

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

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 Gearman, NodeJs and RabbitMQ.

0 comments voice your opinion now!
zend job queue zendeserver tutorial task status


blog comments powered by Disqus

Similar Posts

Limitless Studios: Determine Number Of Online Users Without A Database

Job Posting: Bullseye Creative Seeks a PHP/MySQL Coder & Web Designer

Lorna Mitchell: Zend Certified PHP Developer 5.5

Job Posting: Blue State Digital Seeks PHP/AJAX developer for politcal/tech consulting (Boston, MA)

NETTUTS.com: Organize Your Next PHP Project the Right Way


Community Events





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


api symfony2 code interview opinion unittest release install laravel introduction framework podcast refactor list language threedevsandamaybe testing developer series community

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