<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 02:23:23 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Enrise.com: Using MemcacheQ as Message Queue]]></title>
      <guid>http://www.phpdeveloper.org/news/15734</guid>
      <link>http://www.phpdeveloper.org/news/15734</link>
      <description><![CDATA[<p>
<i>Tim de Pater</i> has <a href="http://www.enrise.com/2011/01/using-memcacheq-as-message-queue/">a new post</a> to the Enrise blog showing how you can use the <a href="http://memcachedb.org/memcacheq/">MemcacheQ</a> tool to act as a message queue for an application.
</p>
<blockquote>
Using a <a href="http://en.wikipedia.org/wiki/Message_queue">message queue</a> 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 <a href="http://gearman.org/">Gearman</a>, <a href="http://activemq.apache.org/">ActiveMQ</a> and <a href="http://www.zend.com/en/products/server/zend-server-job-queue">Zend Server Job Queue</a>. For www.nd.nl (a Dutch newspaper) we wanted a simple and free queue mechanism that integrates with <a href="http://framework.zend.com/">Zend Framework</a> for handling a number of jobs. We found <a href="http://memcachedb.org/memcacheq/">MemcacheQ</a>.
</blockquote>
<p>
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 <a href="http://framework.zend.com/manual/en/zend.queue.adapters.html">Zend_Queue_Adapter_Memcacheq</a> 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.
</p>]]></description>
      <pubDate>Thu, 13 Jan 2011 10:59:03 -0600</pubDate>
    </item>
  </channel>
</rss>
