php-amqplib vs PHP AMQP Extension

##The Problem While testing Futureproofs API performance using BlackFire I noticed that we had a bottleneck centred around an fgets method. It wasn’t part of our code (vague I know, I’ve lost the reference). After a bit of digging I found the culprit in the php-amqlib library; a library we use quite extensively from our API to add messages to RabbitMQ. Now php-amqlib is a great library, we’ve used it a lot and its never once let us down. »

New Relic London Summit 2016

This year I was fortunate enough to attend New Relics London based summit. Not quite as prestigious as its Futurestack15 San Francisco event, it was non the less, worthwhile. The mission statement, if it were to be summarised would read something along the lines of: We're New Relic; we do stuff with data and here are some of our customers to wax lyrical. And that’s not a criticism, the event was on-par or better than most conferences I’ve been too in recent years. »

If you haven't already: lets encrypt

Unless your new to the industry or you’ve had your head in the sand you’ve probably heard about how important SSL certificates are. Not just because of nasty hackers, but nasty governments as well (I’ll refrain from ranting). You probably know this and you have probably drawn the line when it comes to actually implementing an SSL certificate. Why? If your like me it’s because your frugal and your blog doesn’t make money (SSL certificates generally cost money). »

HTML5 Clipboard API plaintext and formatting

A few months ago I was tasked with creating a copy/paste facility within the FP webapp. It worked (across a subset of browsers) but it didn’t copy formatting. Improving it wasn’t a priority until recently when a colleague of mine was tasked with improving the functionality. It turns out the fix was really quite simple. I’d been copying the content into a textarea and since textareas only contain plaintext, thats what was being copied to the clipboard. »

PHP and Upstart

Up until recently I’d been using cron jobs to “kickstart” any failed/exited rabbitMQ consumers. It works, but didn’t come without its own problems, for example: Cron jobs can be no more granular than 1 minute intervals, so if a cron fails, its could take up-to a minute to restart. There is no simple way to terminate/start or restart a process. So I did a bit of googling, I wanted something similar to forever. »