News Feed
Jobs Feed
Sections




News Archive
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

PHPBuilder.com: Import MS Access Data to MySQL 5

NETTUTS.com: Why you Should be using PHP's PDO for Database Access

DevShed: Working with Regular Expressions with Filters in PHP 5

Gennady Feldman's Blog:My recent learnings with Oracle Instant Client and OCI8 API

DevShed: Abstract Classes in PHP - Working with PHP 5


Community Events









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


tool code api opinion testing language community zendframework2 podcast example interview introduction framework unittest development composer release object event functional

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