Building Fillta – Express JS, NodeJS,WebSockets & Socket.IO – Thinking Realtime


One of the things we’ve aimed for when Fillta was being designed is having everything as “real time” as possible. And before I go any further, let me define what is meant by “real time” in this context. I often see people use the term lightly for things that I’d never consider to be real time.

Realtime

My definition and for the purposes of this post, “real time” refers to the ability of the system to discover, process and distribute an item “as soon as possible”. As soon as possible could be within a second or two seconds, it could be within 30 seconds, any more than that and I’m inclined to think that it isn’t real time. The definition is further constrained to something people often don’t mention, relativity. When I say within 1 or 2 seconds I mean, if I publish this blog post now at 20:34:00, for my definition, a real time system is one that would detect and react to that  by 20:34:02 or 20:34:30 at worse… Read more of this post

Install and configure Varnish (3.0.1) cache with WordPress


A few days ago I promised I’d go through what  I did when setting up varnish with wordpress, its been slightly delay  but here goes. The blog I used it on was Script and Scroll. I’ve ran the Apache benchmark tool against the site, only one URL but made 1Million requests to it and it held up quite well. The requests were completed in about 5 minutes, I may post the results in a later entry…

So, on the day that alarm bells went off form traffic spike, I just install varnish and cached everything and anything that I could… Obviously this isn’t ideal in most cases but I had very little time to spend on this. So method one below is the “naive” approach I’d say, but it works and works fairly well. Method two is my current configuration which is based on a post Donncha O Caoim did. I had to tweak a few things because I am using the latest version of varnish some of the configuration options he used changed in version 3 of varnish.

Read more of this post

WordPress + Varnish Cache, A match made in heaven


Recently my other blog, Script and Scroll, started to get a decent amount of traffic. One blog in particular linked back to a post someone published and it gained a lot of attention. Within a few hours of the link being created I started to get alerts from my monitoring system…Wordpress was slowing down, crapping out and running out of memory when serving pages. The load on my VPS hit the roof and Apache more or less came to a halt. After a quick round of investigating, scanning logs etc, I realized what was happening after seeing the referrer and looking at the page that had linked to us. Right, it was time to do something now that I knew what the problem was. Mind you, I had a caching plugin installed but it wasn’t doing much good. After thinking of what my options were I decided to go with Varnish Cache.

Read more of this post

Migrating from self-hosted to hosted wordpress


Been a while since I posted an entry, I thought I’d do one today after my little migration.

I’ve always used a self-hosted WordPress until two nights ago. I decided the resources used by my blog just wasn’t worth having it on my VPS with my other sites. I didn’t want to use a wordpress.com sub-domain either but then I read about a little and found that you can map your existing domain name, I thought “sweet”. For pennies I can get my domain and blog hosted and not worry about server and all that stuff. So here’s a quick break down of migrating from a self-hosted wordpress installation, over to the “hosted” wordpress. Read more of this post

Follow

Get every new post delivered to your Inbox.

Join 351 other followers

%d bloggers like this: