Anyone here know about Node.js?
So, I thought about maybe rewriting a site I'm working on using Node.js and all the associated frameworks.
But I have some real questions. It seems like Express will do what I need it to do. It's also great because the code I write will in essence make whitelisting/blacklisting page requests very simple. If a user requests, /users/data, I have to manually code that in otherwise, the request gets sent to a default page. It's all fair enough.
But one of the things is, the pages I request will have dynamically generated content. Now, I understand that Node is single-threaded. To me, this makes it seem ideal to serve static pages.
I'm using Apache + PHP now and one thing I like a lot more is that Apache creates a new thread per page request and then I can have PHP running its own thread populate the HTML and send it back.
I'm scared that if I use Node.js, that main thread will quickly become over-saturated with user instructions.
As I understand it, all Node's really good at is instruction layering with the main thread. You have a single-thread but somehow through the divine magic of animal sacrifice, you have the ability to layer instructions in a much more efficient way so you can receive more page requests while you're fetching the pages of a previous request. Seems very well-designed but generating the HTML I need dynamically would be blocking which makes Apache + PHP seem more ideal.
Thoughts?