<?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>Wed, 19 Jun 2013 08:16:56 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mfana Ronald Conco's Blog: RabbitMQ and PHP Part 2 - Durable Queues and Persistent Messages]]></title>
      <guid>http://www.phpdeveloper.org/news/17717</guid>
      <link>http://www.phpdeveloper.org/news/17717</link>
      <description><![CDATA[<p>
<i>Mfana Ronald Conco</i> has posted the second part of his RabbitMQ and PHP series to his blog today. This time he looks at <a href="http://www.theprogrammer.co.za/2012/03/19/rabbitmq-and-php-part-2-durable-queues-and-persistent-messages/">durable queues and persistent messages</a>
</p>
<blockquote>
You now have a queuing system that works and generates pdfs which are sent to users as per <a href="http://www.theprogrammer.co.za/2012/03/14/rabbitmq-and-php-part-1/">RabbitMQ and PHP Part 1</a> of this article. A week later after launching the queuing system you get one or two queries from users who claim to have made a request to get the pdf report but it never arrived. Okay, what could have happened ? well you go through the application log files and as suspected  - An Exception was thrown by one your classes as the consumer was trying to create the pdf and that is why it was never sent. Now this compromises the queuing system Totally, But wait there is a way to help prevent such.
</blockquote>
<p>
He shows how to make your queues "durable", meaning they'll survive a broker restart and they require a response from the consumer before being removed. He shows how (via the <a href="http://www.php.net/manual/en/book.amqp.php">php-ampq</a> functionality) to add the "AMPQ_DURABLE" flag to the queue definition. He also includes some code showing how to send back the acknowledgement so the entry can be removed from the queue. He also includes an update to the code that calls "publish" to make the messages persistent too.
</p>]]></description>
      <pubDate>Thu, 22 Mar 2012 13:39:56 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Mfana Ronald Conco's Blog: RabbitMQ and PHP Part 1]]></title>
      <guid>http://www.phpdeveloper.org/news/17693</guid>
      <link>http://www.phpdeveloper.org/news/17693</link>
      <description><![CDATA[<p>
In <a href="http://www.theprogrammer.co.za/2012/03/14/rabbitmq-and-php-part-1/">this recent blog post</a> <i>Mfana Ronald Conco</i> looks at combining the <a href="http://www.rabbitmq.com/">RabbitMQ</a> messaging service with PHP, complete with all of the setup instructions (and configuration) you'll need.
</p>
<blockquote>
There are times when you have to make certain features of your PHP application to work asynchronously, and there are times when you do not have to - I will explain this better by introducing every day scenarios.
</blockquote>
<p>
His two scenarios have a common thread - the need for asynchronous processing, especially for something that can scale as the user base grows. With the help of <a href="http://www.rabbitmq.com/">RabbitMQ</a> he shows you how to install the MW server, get the php-ampq extension for PHP installed and two sample scripts - one to send a message to the broker, the other to receive and parse the result of a job.
</p>]]></description>
      <pubDate>Mon, 19 Mar 2012 13:48:54 -0500</pubDate>
    </item>
  </channel>
</rss>
