DotNetAdil

January 31, 2012

Understanding Node.js

Filed under: ASP.NET, Real Time application — Agamand The True @ 7:04 am

“Node.js is a platform built on Google Chrome JavaScript runtime for easily building fast, scalable network applications. Node.js uses and event driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data intensive real time applications that run across distributed services.” ā€“ taken from Node.js

  • It’s all about how to handle a request, process it and then send back the results.
    • Thread based
      • In thread-based system a thread that accepted the request will handle all the task mention above. The best analogy for this system can be read here. “In a traditional thread-based system, when you get to the receptionist you stand at the counter for as long as it takes you to complete your transaction. If you have to fill out 3 forms, you would do so right there at the counter while the receptionist just sits there waiting for you. You are blocking her or him from servicing any other customers.
    • Event based
      • In this approach, the receptionist will direct the patient to fill those forms somewhere else and get back (call-back method) to him once he have finished filled out those forms. This way the receptionist is not being block by one patient.

      The processing model (get more detail here)

Read more here for some comparison with ASP.NET HttpAsyncHandler

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: