News Feed
Sections




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

Abhinav Singh's Blog:
MEMQ Fast queue implementation using Memcached and PHP only
February 08, 2010 @ 09:03:12

Abhinav Singh has a new post to his blog that looks at using a powerful tool, memcached, with PHP to create a simple queue system that could be reused just about anywhere.

Memcached is a scalable caching solution developed by Danga interactive. One can do a lot of cool things using memcached including spam control, online-offline detection of users, building scalable web services. In this post, I will demonstrate and explain how to implement fast scalable queues in PHP.

He starts with an overview of what the queue will let you do - save data into the queue with a unique identifier and pull it back out based on the key requested (and is removed from the queue). The code sets up the connection to the memcached server and gives you methods to check if the queue is empty and to push and pull records in and out. A bit of sample code illustrates how to put it to use.

2 comments voice your opinion now!
memcached queue tutorial


blog comments powered by Disqus

Similar Posts

Oracle Technology Network: DeployPHP Series, Part 5 - Zend Core for Oracle Quick Start

PHP-Security.net: X.509 PKI login with PHP and Apache

DevShed: Setting up the Foundation for an Extensible Website Engine with PHP 5

PHPBuilder.com: Build Blazing Fast PHP Websites with Memcached Distributed Caching

Zend Developer Zone: Get to know Flex and Zend_Amf


Community Events





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


conference bugfix library zendserver developer release interview language symfony introduction tips list podcast framework laravel api community voicesoftheelephpant deployment series

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