With the rise of Web2.0 applications and continuously increasing of smart phones, the Internet have meet high speed increasing period. At the same time, Web system carries tremendous pressure. Under highly concurrent environment, exploring how to use limited resources to design a good Web system to ensure Website usability, enhance site performance, improve user experience, has become a major research problem for sites and technical personnel to solve.In recent years, a new asynchronous technology becomes a new breakthrough. Asynchronous technology will divide transactions into unrelated independent tasks and parallelly process them, so as to improve throughput and reduce the processing time for the purpose.Paper focuses on the Web server and the application layer of the Web system. Starting with the Web server, this paper analysis of the bottlenecks of synchronous server in the dealing with high concurrency, expounds the solution to this problem of asynchronous technology, and analyzes the three typical asynchronous server technologies. In order to further study, this paper designs and implements a static server based on event-driven, and give the detailed test data to prove the advantages of asynchronous technology in dealing with high concurrency.In the Web application layer of the system, discusses two implementations of asynchronous programming model, callback and coroutines, and analyzes their representative’s language Node and Lua. Then, combined with asynchronous Web server, designs an optimal combination of an asynchronous Web-based system and in principle and practical analyses its superiority.The last part of the paper is the application. Using asynchronous technology discussed in the article, transforms an actual Web project, involving the Web server and the application layer. Transformation is divided into three aspects and do the Contrast test in each aspect Results show that the asynchronous Web technology promotes the performance of the original project at high concurrency scenarios. |