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

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

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

發(fā)布時(shí)間:2018-08-06 10:42
【摘要】:隨著互聯(lián)網(wǎng)的快速發(fā)展,各種互聯(lián)網(wǎng)產(chǎn)品的用戶數(shù)量得到了巨大的增長(zhǎng),用戶也變得更加積極活躍,大量網(wǎng)站需要面對(duì)越來(lái)越高的并發(fā)訪問(wèn)壓力。為了應(yīng)對(duì)海量用戶的訪問(wèn)壓力,我們通常采用增加硬件如使用更多更快的服務(wù)器,或優(yōu)化軟件系統(tǒng)如采用負(fù)載均衡、前后端緩存等技術(shù)手段來(lái)提升系統(tǒng)的并發(fā)處理能力。Node.js作為一種新興和熱門的服務(wù)器端技術(shù),它獨(dú)特的事件機(jī)制和異步I/O模型對(duì)提高Web服務(wù)器的并發(fā)性能,解決高并發(fā)難題提供了有益的解決思路。針對(duì)現(xiàn)有Node.js多線程解決方案存在的算法簡(jiǎn)單負(fù)載不均的問(wèn)題,本文提出了一種基于請(qǐng)求分類和加權(quán)輪詢的負(fù)載均衡方案,并在此基礎(chǔ)上設(shè)計(jì)實(shí)現(xiàn)了一個(gè)基于Node.js的在線商城系統(tǒng)。首先,考慮到Node.js對(duì)不同類型任務(wù)的處理效率,本文將用戶的請(qǐng)求根據(jù)I/O和CPU的使用情況分為三種,然后將同類請(qǐng)求采用加權(quán)輪詢的方式分配給各個(gè)Node.js工作進(jìn)程。為了簡(jiǎn)單有效的計(jì)算各節(jié)點(diǎn)的權(quán)值,本文采用響應(yīng)時(shí)間等效計(jì)算的方式,并且當(dāng)節(jié)點(diǎn)性能接近飽和時(shí)通過(guò)反饋機(jī)制快速遞減權(quán)值,以此來(lái)均衡負(fù)載,提高系統(tǒng)的整體性能。LoadRunner對(duì)比傳統(tǒng)解決方案的測(cè)試結(jié)果表明,本文改進(jìn)的算法能夠在復(fù)雜網(wǎng)絡(luò)情況下有效的均衡用戶的請(qǐng)求,提高了 Web服務(wù)器的處理性能。其次,在研究現(xiàn)有系統(tǒng)的基礎(chǔ)上提出了一種高并發(fā)的框架,將改進(jìn)的Node.js多線程解決方案應(yīng)用在其中作為Web服務(wù)器來(lái)接收用戶的請(qǐng)求。并配合負(fù)載均衡、前后端緩存、數(shù)據(jù)庫(kù)等常用組件實(shí)現(xiàn)了在線商城的開(kāi)發(fā)工作。對(duì)比測(cè)試表明,和使用傳統(tǒng)Apache Tomcat服務(wù)器Java語(yǔ)言實(shí)現(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é)位級(jí)別】:碩士
【學(xué)位授予年份】:2016
【分類號(hào)】:TP311.52

【相似文獻(xiàn)】

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

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

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

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

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

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

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

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

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

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

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

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

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

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

,

本文編號(hào):2167483

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

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


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

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