News Feed
Sections




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

Lorna Mitchell's Blog:
Using Gearman from PHP
February 16, 2011 @ 09:51:07

Lorna Mitchell has a new post today about using a popular backend processing tool, Gearman, from inside of PHP. Her example gives a full overview of how to add a new job and write the worker for it to make things happen.

Basically, this application generates some PDFs from a variety of data sources, makes images, and emails it. Since the whole data processing, image handling, PDF generation process is fairly heavy, I'm putting the requests to generate these onto a gearman queue and having some workers process the jobs.

You'll need to have the Gearman server and extension installed (sample instructions here for Ubuntu) to use the sample code she gives using the Gearman_Client and GearmanWorker objects to create the pieces of the puzzle. You can find out more about the Gearman PECL extension here.

0 comments voice your opinion now!
gearman tutorial pecl extension worker jobs example


blog comments powered by Disqus

Similar Posts

Till Klampaeckel's Blog: Cooking PHPUnit (and a chef-solo example on top)

PHP-Tip-a-Day: PHP Tutorial: The Allegory of The Factory Pattern

Arnold's Blog: Without a framework: (M)VC

Adam Culp: Clean Development Series (Parts 1, 2 & 3)

Robert Basic's Blog: Creating a chat bot with PHP and Dbus


Community Events





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


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

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