Configuring haproxy to load balance multiple engine.io servers

Haproxy is a Load Balancer to forward traffic to multiple servers. It works with HTTP and plays well with WebSockets. Engine.io is the implementation of transport-based cross-browser/cross-device bi-directional communication layer for Socket.IO. It's WebSockets with fallbacks to make it work on the web. Engine.io is much…

Read this article

On passport.js, specific use cases

In the previous post, I talked about the authentication flow and the flow for subsequent requests using passportjs. This post will cover some specific use cases. What user information to store in the session and what not? It's best to keep the session information small and only attach user information…

Read this article

Understanding passport.js authentication flow

Passport.js is a flexible authentication middleware (allowing users to log in) that can be fully customised and works great with connect/express. It is flexible in the sense that it allows for different authentication strategies (think via Twitter, via our own user database - installed via separate modules that…

Read this article

Install latest version of node to use without sudo

Explains the steps I followed to install node from source on Ubuntu server. This is just kept as a reference, jump to the resources to get the link to a more detailed article. Ensure we can build/curl // Update package manager sudo apt-get update // Install compiler sudo apt-get install build-essential…

Read this article