Build Network Message Server Base on Functional Language
- Author
- DongYi
- Advisor
- HuangLinPeng , ShiZuo
- School
- Shanghai Jiaotong University
- Major
- Software Engineering
- Classification
- TP393.05 Network equipment
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 30
- Citations
- 1
Abstract
The software industry in the popularity of the Internet have entered the age of theInternet, technology and communications, such as lightning the rapid progress of peoplearound the world in an unprecedented manner close to each other. Internet software build,we need better performance, higher stability, shorter development cycles of softwareservices. Abstract model of the traditional object-oriented software to complete functionallanguage with fault tolerance, performance, and not have the characteristics of thestability of traditional imperative languages, making it ideal for the development oflarge-scale network message server multi-core and cluster.This article uses the functional language Erlang language development in the OTPwithin the framework of a network message server; the server-based message-drivenmodel to prepare to reach the7000requested the performance of single-server loadconcurrent requests per second. Good architecture for functional languages to ensure thedevelopment of the system can achieve good flexibility, rapid iterative developmentefficiency. In order to achieve the requirements of loosely coupled zeroMQ to extend thesystem to large network server architecture as the business logic processing module. Thefull realization of the characteristics of a framework to support multiple languages toachieve to prove that a network server program in the high concurrent functionallanguage development environment, development efficiency and the efficiency were ableto achieve satisfactory results. Pointed out that a functional language is a key link in thedevelopment of parallel programs, analyze and demonstrate why, in a concurrent programfunctional language than the command language is easier to guarantee the parallelprogram performance and stability.
Table of contents
Summary 3-4
ABSTRACT . 4-9
1 Introduction 9-14
1.1 Background 9-10 <br / > 1.2 the traditional server model development efficiency analysis 10-11
1.3 traditional server model easy scalability analysis 11
1.4 server model of traditional performance analysis stability Analysis 11-12
1.5 traditional server model 12-13
1.6 the paper is organized 13-14
2 related technical analysis 14 - 19
2.1 basic Concepts of functional languages ?? 14-16
2.2 Erlang and OTP 16-17
2.3 object-oriented model and message-oriented model comparison 17-19
3 business needs analysis and bottlenecks 19-23
3.1 web server encountered 19
3.2 method of concurrent processing network 19-21
3.2.1 blocking a single process 19-20
3.2.2 blocking multi-process 20
3.2.3 blocking multi- multi-threaded process 20
3.2.4 non-blocking event-driven 20-21
3.2.5 messaging model 21
3.3 functional Requirements 21-23
4 network message server Breath of system implementation 23-41
4.1 server components outlined 23
4.2 system Architecture 23-25 ??
4.3 system Timing Diagram 25-26
4.4 nbsp basic organizational structure of the implementation code ; 26-41
4.4.1 gateway server (breath_gateway) 26-27
4.4.2 application server description file (breath_app) 27-28
4.4.3 monitoring tree (breath_sup) 28-30
4.4. 4 server entry (breath_server) 30-31
4.4.5 forwarding server (breath_proxy) 31-32
4.4.6 message forwarding server (breath_postoffice) 32 -36
4.4.7 Room Controller (breath_room) 36-38
4.4.8 logic processing module (breath_mq) 38-41
5 system expansion 41-49
5.1 system expansion method method 41
5.2 system interface design 41-43
5.2.1 function call 41-42
5.2.2 TCP, UDP calls 42
5.2.3 HTTP calls 42-43
5.3 message Queue 43-44
5.4 ZeromMQ research 44-45
5.5 using ZeroMQ way 45-46
5.6 logic processing module 46-47
5.7 scenarios studied 47-49
6 compared with the traditional model of analysis 49-66
6.1 system running results 49-50
6.2 Legacy mode the procedures for implementation 50-51
6.3 Python versions achieve contrast 51-54
6.4 development efficiency analysis 54-56
6.4. a fault tolerance analysis 54-56
6.4.2 reasonable abstract 56
6.5 easy scalability comparative analysis 56-58
6.5. one pair of the operating system -dependent small 57
6.5.2 enormous potential efficiency convenient nbsp 57-58
6.5.3 fault isolation ; 58
6.6 extension the key technology systems analysis utilize 58-60
6.6.1 system resources architecture 59
6.6.2 multiple application servers 59
6.6 Save .3 Fi session 59-60
6.7 system test data 60-64
6.8 test data comparison 64-66
7 of this article work and future Prospects 66-68
7.1 herein major work done 66
7.2 future research directions 66-68
references 68-70
Thanks nbsp catalog published papers during the 70-71
pursue a degree ;; nbsp 71-74
Shanghai Jiaotong University master's degree thesis written resolution 74
Related dissertations
- Research on the Performance of National Audit Results Announcement and Its Influencing Factors
- " Jinsui" Farmers Benefitial Card and Farmer Credit Loan Business Development Research
- Research on the Performance of Property Insurance Lines in China
- Study on Chinese Agricultural Futures Hedging Performance of Low Level
- Study of China’s Securities Industry Based on SCP Paradigm
- The Liquidity Effect on the Relationship between the Size and the Performance of the Equity Open-ended Fund
- An Empirical Study on the Performance of Chinese Mutual Funds
- The Study on the Development of Socially Responsible Investment Funds in China
- The Performance Analysis on the City Commercial Banks in China before and after the Listing
- Research on Performance Evaluation and Innovation of New-type Rural Financial Institutions
- Analysis on Village Banks’Performance and Factors
- Research on the ownership structure of China's small and medium-sized commercial banks influence on its performance
- A Study on the Effectiveness of Performance Evaluation System of A Bank Shaanxi Branch
- Study on Internal Governance and Product Design for Rural Credit Union Funds Performance Influencing
- Research on the diversification of commercial bank China
- The Performance Evaluation of Listed Banks in China an Empirical Study on Lnfluencing Factors
- Evaluation and Empirical Study of China’s Listed Banks Operating Performance
- Research about Impact of Financial Openness on Commercial Bank Performance in China
- Research on Performance Evaluation Index System of Listed Commercial Banks
- Planning and Control Research of the H Bank OTP Project