News Feed
Sections




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

Enrise.com:
Using MemcacheQ as Message Queue
January 13, 2011 @ 10:59:03

Tim de Pater has a new post to the Enrise blog showing how you can use the MemcacheQ tool to act as a message queue for an application.

Using a message queue can help to suspend heavy processes and execute them later so you won't bother your visitors with long waiting times. There are a few solutions for queuing like Gearman, ActiveMQ and Zend Server Job Queue. For www.nd.nl (a Dutch newspaper) we wanted a simple and free queue mechanism that integrates with Zend Framework for handling a number of jobs. We found MemcacheQ.

He talks a bit about what MemcacheQ is ("damn simple, very fast, great concurrency") and about the fact you can use existing memcache technology to interact with it. He points out the Zend_Queue_Adapter_Memcacheq component of the Zend Framework and shows an example of how to use it in a simple app to store a simple process. There's also a script that would run in a cron job (or something similar) and pull out these processes and execute them.

0 comments voice your opinion now!
memcacheq message queue zendframework tutorial


blog comments powered by Disqus

Similar Posts

Content with Style Blog: Quick helper script for ZF view translations

DevShed: Positioning Strings with the show_xy() Method in PDF Documents with PHP 5

Padraic Brady's Blog: The PHPSpec Zend Framework App Testing Manifesto: Preamble

DZone.com: Video: PHP 5.3.1, MongoDB and Lithium on Windows 7 / IIS 7

Tectonic.co.za: Getting your head around PHP objects


Community Events





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


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

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