Using Nginx as a Reverse Proxy for Developing Microservices with Docker Compose

I've recently started using Docker for my development environment. One of the first problems I ran into was how to run multiple Docker Compose microservice projects on the same host if they all need to run on the same port (port 80 for example). I will outline one of the solutions that involves using Nginx as a reverse proxy to send requests to the correct backend microservice.
Read More

Deploying PHP Workers to AWS Elastic Beanstalk

AWS Elastic Beanstalk is an AWS service that lets you automatically deploy load balanced PHP applications to EC2. One of the lesser know features is the ability to setup EB as a worker to handle long running or computationally intensive tasks (Think image processing/bulk mail sending etc.). EB Workers listen to a SQS queue and automatically run any jobs you put onto the queue. In this post I'll show you how to setup your own EB PHP worker.
Read More

XKCD's "Now" Coded in JavaScript

I love XKCD’s web comics, they always give you a new way of looking at something and a laugh to boot. Yesterday at work I came accross the Now comic. It shows you at a glance what countries are in business hours, or outside them. The image is rendered on the XKCD server and updated every hour when you refresh your page.

Read More