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

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

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

【相似文獻(xiàn)】

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

1 劉生建;袁冠遠(yuǎn);楊艷;;基于Node.js的撮合系統(tǒng)開發(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的萬向節(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ù)字資源開放服務(wù)系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];北京郵電大學(xué);2014年

7 陶嬡;基于Node.js的心理解壓應(yīng)用的設(shè)計(jì)與開發(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年

,

本文編號:2167483

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

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


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

版權(quán)申明:資料由用戶a3792***提供,本站僅收錄摘要或目錄,作者需要?jiǎng)h除請E-mail郵箱bigeng88@qq.com
精品国产亚洲av成人一区| 亚洲av又爽又色又色| 日韩在线一区中文字幕| 午夜福利黄片免费观看| 日韩黄色大片免费在线| 少妇肥臀一区二区三区| 亚洲中文字幕三区四区| 亚洲免费黄色高清在线观看| 亚洲国产丝袜一区二区三区四| 熟女体下毛荫荫黑森林自拍| 亚洲国产欧美精品久久| 东京热男人的天堂一二三区| 两性色午夜天堂免费视频| 偷拍偷窥女厕一区二区视频| 色婷婷丁香激情五月天| 少妇被粗大进猛进出处故事| 青青操视频在线播放免费| 亚洲国产成人久久99精品| 亚洲国产精品久久综合网| 91精品国产综合久久精品| 欧美日韩国产精品第五页| 欧美日韩亚洲国产综合网| 亚洲五月婷婷中文字幕| 不卡视频免费一区二区三区| 五月婷婷六月丁香在线观看| 国产极品粉嫩尤物一区二区| 四季精品人妻av一区二区三区 | 亚洲欧美日韩另类第一页| 欧美日韩国产一级91| 中文字幕日韩无套内射| 欧美黑人在线精品极品| 午夜国产精品国自产拍av| 精品欧美日韩一区二区三区| 丝袜视频日本成人午夜视频| 中文字幕不卡欧美在线| 亚洲精品福利视频你懂的| 又大又紧又硬又湿又爽又猛| 久久国产精品亚州精品毛片| 亚洲做性视频在线播放| 欧美日韩精品久久亚洲区熟妇人| 男女激情视频在线免费观看|