A nice abstract look at a way to scale a nodejs app. Some of the basic code needed is included.