Mars
Mars

Reputation: 930

Node for anything but web development?

In every blog, on every site, on every forum, all you hear about Node is how people use it for web development, similar to Ruby on Rails. And at the same time you always hear the slogan "for easily building fast, scalable network applications". My simple question is, can it be used for other server applications as well? Or rather, should it? There is the TCP server example of course, but is Node good/fast enough for other things than a web server? Like... a server for an online game? This is just a question out of curiosity, since it looks like it shouldn't be too much of a problem.

Upvotes: 2

Views: 173

Answers (1)

schaermu
schaermu

Reputation: 13460

Node.JS at it's core is a high-performance i/o library/framework. So you can basically build ANY application that relies on fast i/o operations (which of course includes a web-server).

Since it's not a scripting language like PHP, you do not rely on a seperate server application to host your code; it's self-hosted.

So to answer your question: yes, you can build ANY server application using node.js (be it a server for an online game, an e-mail server or even a high-speed feed parser for machine-generated data).

Upvotes: 2

Related Questions