[dba-Tech] How to run Node.js within your IIS server

Jim Lawrence accessd at shaw.ca
Thu Feb 9 00:06:35 CST 2012


Just ran across this link and thought it would be a fine idea to share it.

Unless you have been living in a box under the bridge you have heard of
Node.js and its almost legendary performance capabilities. In a nutshell,
Node.js is just the Chrome V8 asynchronous event driven engine, in a
wrapper, using the JavaScript language and it functions like/similar an IIS
or Apache server...just a lot faster in its native environment. (It is both
a server and a language all in one.)

Check out the basics at http://nodejs.org and view the vids.

Here is a link to page that describes the performance levels and comparison
benchmarks between the Apache Server with PHP and Node.js (server and
language).

http://tinyurl.com/3wtt5ry

The above authors conclusion, considering that Apache is no dog are as
follows: " ...As the above tests show, node is fast. Really fast. Much
faster than Apache - many more requests per second, higher transfer rate
with much smaller number of failed requests at the same time. Really
shining... "

The following link describes a way to load Node.js within the MS environment
and it does not require a virtual Linux machine or a full Linux
partition/box. Node.js will not run nearly as fast as it would own
environment, Linux, but there is some nice benefits to running it within
IIS.

http://tinyurl.com/4yuacxa

Note: that Node.js and all the coding around it is in its preliminary stages
so things may change fast...mostly for the best but this product is far from
stable. Also note, that there are a number of discussions and samples on how
to connect through from JS to MSSQL and for those real curious how to
connect to such databases as Cassandra, Postgres, MySQL and so on.

With the ability to run JavaScript as both a FE and BE many new apps are
appearing like, How to build a js app for your game console, How to unload
files to a server just using js, How to build PDF files with js and so on.

Jim     



More information about the dba-Tech mailing list