BlogNode.js - Understanding the concept

3rd May 2013

My first step into the world of Node.js was to get my head around the concept and how it differs from the standard server side scripting languages which I've become used to.

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

Node's inherent event handler is always waiting, when it receives an instruction it carries it out asynchronously when ready. This means that unlike requests in other server-side scripting languages (such as PHP) there is nothing resource blocking, hence quicker response and processing times.

Node isn't build to be a web server primarily, this is just one of the things that you can make it do. It's a powerful tool which the developer has ultimately has complete control over. This allows you to build some extremely high performance software. However, you have to put in a lot more work. For instance, you have to tell your scripts how to handle http requests, something which PHP and Apache automatically handle for you.

Coming soon: my experience of building a simple project in Node.js

Let's Talk