Font Size: a A A

Comparison And Research On The Application Of Node.js And Traditional Web Technology In Non-CPU-intensive Systems

Posted on:2018-01-13Degree:MasterType:Thesis
Country:ChinaCandidate:H T BaiFull Text:PDF
GTID:2348330512997851Subject:Circuits and Systems
Abstract/Summary:PDF Full Text Request
With the rapid development of the Internet,more and more types of Web applications appear,non-CPU-intensive systems are playing an increasingly important role,such as the widely used social media,a variety of live platforms.These applications are characterized by the high real-time and high concurrent amount of user interaction,where a large number of concurrent users,a large number of pictures upload,download and other 10 operations happen,which makes the performance requirements of the Web server very harsh.The traditional Web development technology achieves real-time interaction by applying Ajax-based polling mechanism.With the help of multi-threaded programming,the use of multi-core server,even increasing the number of servers,the system concurrency improves,which,however,will undoubtedly increase the cost of investment,and did not solve the problem from the source.Node.js employs single-threaded asynchronous non-blocking IO instead of traditional Web technology multi-threaded programming,aimed at providing a solution for high real-time task in non-CPU-intensive system.By applying couple of general I/O interface on the Google V8 engine,JavaScript is able to perform efficient on the server side.The dissertation anlyzes the differences between CPU-intensive and non-CPU-intensive operations in Web applications,firstly,and then introduces Node.js and its commonly used extended components,as well as the application of Node.js in CPU-intensive and non-CPU-intensive systems,and then design and implement a social system based on Node.js.In order to improve the efficiency of the operations of,for instance,searching in the online user list in the social system,this dissertation uses the Topolitz matrix to realize the universal hash algorithm to get the Hash table with good uniformity.In order to make a comparison of Node.js and traditional Web technology in non-CPU-intensive systems,this dissertation employs the Java Web technology to achieve online chat and image management module of social system as a comparison object,finally,test and analyze the performance of these two systems under these technologies.The test results show that the online chat module system which based on Node.js Socket.IO the response to real-time is far superior to the realization of Ajax polling mode,and with the increase in the number of concurrent users,the memory usage of server which based on Node.js increase rate is slow,and the memory usage of server based on Java Web technology the server memory usage increased dramatically until the downtime.Therefore,in non-CPU intensive systems,Node.js than the traditional Web technology to better play server performance.
Keywords/Search Tags:Non-CPU intensive, Node.js, Asynchronous IO, Non-blocking, Socket.IO
PDF Full Text Request
Related items