“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.
- 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 Reply