php

Writing a Persistent PHP Daemon for RabbitMQ Event Consumption

Writing a Persistent PHP Daemon for RabbitMQ Event Consumption

A demonstration on how to write a persistent PHP consumer for RabbitMQ RPC queues.  This tutorial assumes you already are familiar with connecting to RabbitMQ.  The demonstration focuses on making the PHP consumer persistent through mitigation of PHP's inherent memory leaks through a managed parent-child fork() model allowing your consumer applications to run indefinitely.

PHP-AMQP RabbitMQ Connection Timeouts

PHP-AMQP RabbitMQ Connection Timeouts

I was experiencing connection timeouts on my RabbitMQ daemons when the system had accumulated 90-minutes of inactivity.  Even though I had enabled the native (to RabbitMQ) keep-alive feature, node.js connection requests were still crashing the system.

This article identifies why the heart-beat feature does not work in PHP and provides a work-around solution to the issue.

Down-Rev Oracle JDK/JRE 8 to JDK/JRE 7 on Ubuntu 14.04

PhpStorm8 failed to execute correctly.  JetBrains informed me that the new release is not playing well with the Oracle JDK version 8 -- this post walks you through down-rev'ing JDK8 to JDK7, after which, PhpStorm8 performed flawlessly.