InterviewSolution
Saved Bookmarks
| 1. |
Name the applications where you cannot use Node.js? |
|
Answer» It is not advisable to use Node.js for CPU intensive applications Because node.js is designed AROUND using a single thread very EFFICIENTLY. Its event based model dispatches code fragments when specific events occur. Those code fragments are supposed to execute very quickly and then return CONTROL to node.js, which then dispatches the NEXT event. If one of those code fragments PERFORMS a long running task, then no more events will be dispatched and the whole system appears to hang. |
|