天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當(dāng)前位置:主頁 > 科技論文 > 軟件論文 >

基于Node.js的高并發(fā)在線商城系統(tǒng)的設(shè)計與實現(xiàn)

發(fā)布時間:2018-08-06 10:42
【摘要】:隨著互聯(lián)網(wǎng)的快速發(fā)展,各種互聯(lián)網(wǎng)產(chǎn)品的用戶數(shù)量得到了巨大的增長,用戶也變得更加積極活躍,大量網(wǎng)站需要面對越來越高的并發(fā)訪問壓力。為了應(yīng)對海量用戶的訪問壓力,我們通常采用增加硬件如使用更多更快的服務(wù)器,或優(yōu)化軟件系統(tǒng)如采用負載均衡、前后端緩存等技術(shù)手段來提升系統(tǒng)的并發(fā)處理能力。Node.js作為一種新興和熱門的服務(wù)器端技術(shù),它獨特的事件機制和異步I/O模型對提高Web服務(wù)器的并發(fā)性能,解決高并發(fā)難題提供了有益的解決思路。針對現(xiàn)有Node.js多線程解決方案存在的算法簡單負載不均的問題,本文提出了一種基于請求分類和加權(quán)輪詢的負載均衡方案,并在此基礎(chǔ)上設(shè)計實現(xiàn)了一個基于Node.js的在線商城系統(tǒng)。首先,考慮到Node.js對不同類型任務(wù)的處理效率,本文將用戶的請求根據(jù)I/O和CPU的使用情況分為三種,然后將同類請求采用加權(quán)輪詢的方式分配給各個Node.js工作進程。為了簡單有效的計算各節(jié)點的權(quán)值,本文采用響應(yīng)時間等效計算的方式,并且當(dāng)節(jié)點性能接近飽和時通過反饋機制快速遞減權(quán)值,以此來均衡負載,提高系統(tǒng)的整體性能。LoadRunner對比傳統(tǒng)解決方案的測試結(jié)果表明,本文改進的算法能夠在復(fù)雜網(wǎng)絡(luò)情況下有效的均衡用戶的請求,提高了 Web服務(wù)器的處理性能。其次,在研究現(xiàn)有系統(tǒng)的基礎(chǔ)上提出了一種高并發(fā)的框架,將改進的Node.js多線程解決方案應(yīng)用在其中作為Web服務(wù)器來接收用戶的請求。并配合負載均衡、前后端緩存、數(shù)據(jù)庫等常用組件實現(xiàn)了在線商城的開發(fā)工作。對比測試表明,和使用傳統(tǒng)Apache Tomcat服務(wù)器Java語言實現(xiàn)同樣的功能相比,使用Node.js作為Web服務(wù)器在有限硬件投入的情況下性能提升明顯,具有更好的并發(fā)處理能力。
[Abstract]:With the rapid development of the Internet, the number of users of various Internet products has been greatly increased, the users have become more active, a large number of websites need to face more and more high pressure of concurrent access. In order to cope with the pressure of massive users, we usually use additional hardware such as using more and faster servers, or optimize software systems such as load balancing. As a new and popular server-side technology, Node.js has unique event mechanism and asynchronous I / O model to improve the concurrent performance of Web server. Solving the problem of high concurrency provides a useful way to solve the problem. Aiming at the problem of simple load balance in existing Node.js multithreading solutions, this paper proposes a load balancing scheme based on request classification and weighted polling, and then designs and implements an online shopping mall system based on Node.js. Firstly, considering the processing efficiency of Node.js for different types of tasks, this paper divides user requests into three types according to the use of I / O and CPU, and then distributes the similar requests to each Node.js work process by weighted polling. In order to calculate the weights of each node simply and effectively, the response time equivalent calculation method is adopted in this paper, and when the performance of the node is close to saturation, the weight value decreases rapidly through the feedback mechanism to balance the load. The test results of improving the overall performance of the system. LoadRunner show that the improved algorithm can effectively balance user requests in complex networks and improve the processing performance of Web servers. Secondly, a framework with high concurrency is proposed based on the research of the existing system, in which the improved Node.js multithreading solution is applied as a Web server to receive user requests. And with load balance, front and rear cache, database and other common components to achieve the development of online shopping mall. The comparison test shows that compared with the traditional Apache Tomcat server Java language, using Node.js as the Web server can improve the performance obviously and has better concurrency processing ability with limited hardware input.
【學(xué)位授予單位】:北京郵電大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2016
【分類號】:TP311.52

【相似文獻】

相關(guān)期刊論文 前2條

1 劉生建;袁冠遠;楊艷;;基于Node.js的撮合系統(tǒng)開發(fā)[J];軟件導(dǎo)刊;2014年08期

2 金德鑫,楊芙清,鄒悅;一個模塊化操作系統(tǒng)的并發(fā)處理[J];北京大學(xué)學(xué)報(自然科學(xué)版);1981年03期

相關(guān)碩士學(xué)位論文 前10條

1 吳博;基于Node.js的高并發(fā)在線商城系統(tǒng)的設(shè)計與實現(xiàn)[D];北京郵電大學(xué);2016年

2 王金龍;基于Node.js的圖片分享應(yīng)用的設(shè)計與實現(xiàn)[D];南京理工大學(xué);2015年

3 邱偉偉;基于Node.js的萬向節(jié)制造物聯(lián)網(wǎng)系統(tǒng)[D];浙江工業(yè)大學(xué);2016年

4 楊曉婷;基于Node.js的基礎(chǔ)框架設(shè)計與實現(xiàn)[D];北京郵電大學(xué);2017年

5 王超;基于Node.js的即時消息系統(tǒng)設(shè)計與實現(xiàn)[D];北京郵電大學(xué);2016年

6 李博洋;基于Node.js的分布式數(shù)字資源開放服務(wù)系統(tǒng)的設(shè)計與實現(xiàn)[D];北京郵電大學(xué);2014年

7 陶嬡;基于Node.js的心理解壓應(yīng)用的設(shè)計與開發(fā)[D];北京郵電大學(xué);2017年

8 楊振宇;基于Nodejs的云PACS系統(tǒng)的設(shè)計與實現(xiàn)[D];北京交通大學(xué);2017年

9 李堂更;移動通信基站智能鎖系統(tǒng)軟件設(shè)計與實現(xiàn)[D];電子科技大學(xué);2017年

10 吳昊;應(yīng)用交付設(shè)備在公安行業(yè)的應(yīng)用與研究[D];遼寧科技大學(xué);2016年

,

本文編號:2167483

資料下載
論文發(fā)表

本文鏈接:http://www.sikaile.net/kejilunwen/ruanjiangongchenglunwen/2167483.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權(quán)申明:資料由用戶a3792***提供,本站僅收錄摘要或目錄,作者需要刪除請E-mail郵箱bigeng88@qq.com