Node.js is a server side javascript framework which mainly used for real time web application. The core idea is event driving with asynchronous programming. When you develop your dashboard web applications, it's so great to let your web page to show real time charts and statistic data. There is also real time programming framework named Signal R from Microsoft, which is purely under ASP.Net and a great contender compared with Node.js.
Compared with Signal R, Node.js has another feather that all javascript code you wrote for client side can be easily reused on the server side. When I worked with a Online Web Reporting project, I applied Chart.js javascript to create vivid charts on the front web end, and also I applied jsPDF javascript library on client side to create PDF report for those vivid charts. All these worked fine but we also have a requirement that the server side can create same PDF reports and deliver them to our client's email. To make those PDF reports have same look and feel, the server side should call the same client side javascript code to create the PDF doc. The difference is the server side service will not be launched from client web side. And Node.js offered great chance to show their shinning part for sharing same client code on server side.
So we finally choose Node.js, to do above 2 great jobs.
The following blog link would compare Node.js and Signal R.
http://sim4all.com/blogging/?p=454
No comments:
Post a Comment