My Personal Blog

A bunch of things I would like to write about

WebSockets on LAMP stack Part 2

In the previous part of this tutorial we saw how to build a WebSocket server in Python and how to send commands to a UNIX socket from the command line. In this part we will develop a PHP application to do that. I am not going to use any framework because I am trying to demonstrate some basic concepts. So lets get started. Some changes are required to the Python application to make it easier to read the output form the PHP application.

WebSockets on LAMP stack Part 1

The way PHP works on Apache or Nginx (php-fpm) makes it impossible to keep long lasting connections like Websockets especially if you are looking to scale it. So another service is needed that is capable of handling hundreds of connections simultaneously without much overhead. It could be written in Go, Java, Python, PHP or any other language that has support for even driven programming. Now frameworks that you could use with the above languages.

Ideas for a faster Web (Draft)

Background I am a Software Developer that works in the shipping industry. Most of time I spend my time trying to develop solutions that improve the Internet communication of the vessels in terms of bandwidth and speed. Most of the modern web is build on the assumption that Internet is a commodity. In the shipping industry however Internet is a resource that needs to be managed carefully. Internet communication cost a lot of money and the communication speeds are relatively slow.

How do I run Docker in production

Disclamer: I run docker in a very small deployment so this in not a comprehensive guide on how to run Docker in large scale productions. It is intended to give developers and system administrators a starting point. Let me get something out the way first. I have the bad habit of wanting to know how everything works, what makes them tick how do they function at least to certain level that will make me comfortable that I will not screw things up when things move to production.