Font Size: a A A

The Research And Application Of High Concurrency Web System Based On Node.js

Posted on:2015-12-06Degree:MasterType:Thesis
Country:ChinaCandidate:Y ChenFull Text:PDF
GTID:2308330473453186Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
With the development and wide application of Internet technology, more and more websites are under the pressure of high concurrent visit. To ensure web system’s efficiency and stability at high concurrent visit is a very important issue in web technology. The traditional way to enhance its concurrent processing capability, mainly through load balancing, caching and other techniques, but for concurrent performance of HTTP server, it is not much improved. Node.js technology is the most popular server-side technology which maintains compatibility with traditional techniques.It adopt event-driven asynchronous I/O model to improve the concurrent performance of HTTP server. Therefore, the research of based on node.js of high concurrency web system has important practical significance.This thesis analyzes the challenges faced by high concurrency web system. Starting with some large and high concurrency websites’ architecture, the thesis summarizes existing high concurrency solutions. Next, study the node.js structure and operating principle. Comparing the I/O model of node.js with the traditional ones, the thesis illustrates a multi-threaded and multi-process model’s drawbacks and node.js core technology- event-driven asynchronous I/O model, and analyzes the performance advantages of the model at high concurrent visit and high load environment.Since node.js is native single-thread mode, in order to utilize the advantages of multi-core servers, on the basis of the deep study of node.js multicore solutions, the thesis designs and implements a simple and effective multi-core parallel node.js framework. And a node.js multicore HTTP server was implemented based on the framework. The server can not only take the node.js’ s advantage in high concurrency model and I/O performance, but also to solve the problem of low CPU utilization in multicore server because of the single-thread mode.The concurrent performance of HTTP server has been greatly improved.To be combined with practical application, the thesis design and implement a system based on node.js of microblogging. Firstly, the thesis design the overall architecture of the system. Then, based on MongoDB, the thesis designed the data pattern to achieve the persistent storage of data. Next, the thesis design a layered caching system of Redis to store data stored in memory. And then, the thesis introduces and implements RabbitMQ message queue, to reduce the pressure of HTTP server and improves throughput. Finally, the system has been tested in a real environment, and through comparison with the traditional implementation, it proved that node.js is more suitable for high concurrency web system.
Keywords/Search Tags:node.js, high concurrency, event-driven, asynchronous I/O
PDF Full Text Request
Related items